/*
 * Copyright (c) 2017-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

package com.facebook.litho.viewcompat;

import android.view.View;

/**
 * Empty implementation of {@link com.facebook.litho.viewcompat.ViewBinder}. This can be useful if
 * we need to override only one method.
 */
public class SimpleViewBinder<V extends View> implements ViewBinder<V> {

  @Override
  public void prepare() {}

  @Override
  public void bind(V view) {}

  @Override
  public void unbind(V view) {}
}

Add empty implementation of ViewBinder
Add empty implementation of ViewBinder

Summary: When we need to override only `bind()` we'd better extend this implementation and override only one method instead of having few other empty methods.

Reviewed By: IanChilds

Differential Revision: D5630298

fbshipit-source-id: 9845e7fae419f73c5f4a5eb3b836e52d513fd548
