// Path: agera/src/main/java/com/google/android/agera/Receivers.java
// @SuppressWarnings("unchecked")
// @NonNull
// public static <T> Receiver<T> nullReceiver() {
//   return NULL_OPERATOR;
// }


import static com.google.android.agera.Receivers.nullReceiver;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.view.View;
import com.google.android.agera.Receiver;
/*
 * Copyright 2016 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.android.agera.rvadapter;



/**
 * Contains a basic implementation of {@link LayoutPresenter}.
 */
public final class LayoutPresenters {

  /**
   * Starts the creation of a {@link LayoutPresenter}.
   */
  @SuppressWarnings("unchecked")
  @NonNull
  public static Builder layoutPresenterFor(@LayoutRes int layoutId) {
    return new Builder(layoutId);
  }

  /**
   * Creates a simple {@link LayoutPresenter} for the {@code layoutId}.
   */
  @SuppressWarnings("unchecked")
  @NonNull
  public static LayoutPresenter layout(@LayoutRes int layoutId) {
    return new Builder(layoutId).build();
  }

  public static final class Builder {
    @NonNull
// Path: agera/src/main/java/com/google/android/agera/Receivers.java
// @SuppressWarnings("unchecked")
// @NonNull
// public static <T> Receiver<T> nullReceiver() {
//   return NULL_OPERATOR;
// }


// Path: extensions/rvadapter/src/main/java/com/google/android/agera/rvadapter/LayoutPresenters.java
import static com.google.android.agera.Receivers.nullReceiver;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.view.View;
import com.google.android.agera.Receiver;

/*
 * Copyright 2016 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.android.agera.rvadapter;



/**
 * Contains a basic implementation of {@link LayoutPresenter}.
 */
public final class LayoutPresenters {

  /**
   * Starts the creation of a {@link LayoutPresenter}.
   */
  @SuppressWarnings("unchecked")
  @NonNull
  public static Builder layoutPresenterFor(@LayoutRes int layoutId) {
    return new Builder(layoutId);
  }

  /**
   * Creates a simple {@link LayoutPresenter} for the {@code layoutId}.
   */
  @SuppressWarnings("unchecked")
  @NonNull
  public static LayoutPresenter layout(@LayoutRes int layoutId) {
    return new Builder(layoutId).build();
  }

  public static final class Builder {
    @NonNull
    private Receiver recycler = nullReceiver();