buildSrc/sample/library/src/main/java/com/uber/artist/mylibrary/MyUtils.java [27:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public final class MyUtils {

  private MyUtils() {
  }

  /**
   * A static factory method that creates the Consumer that processes the tap. In this case we
   * write a message in LogCat.
   *
   * @return The processor consumer.
   */
  public static Consumer<Object> createTapProcessor() {
    return new Consumer<Object>() {
      @Override
      public void accept(Object o) {
        Log.d("Artist", "Tapped a MyView");
      }
    };
  }

  /**
   * A static factory method that creates the Function that maps RxBinding signals to another type.
   * In this case we map them to our instance of Signal.
   *
   * @return The mapper function.
   */
  public static Function<Object, Signal> createRxBindingSignalMapper() {
    return new Function<Object, Signal>() {
      @Override
      public Signal apply(Object o) throws Exception {
        return Signal.INSTANCE;
      }
    };
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sample/library/src/main/java/com/uber/artist/mylibrary/MyUtils.java [27:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public final class MyUtils {

  private MyUtils() {
  }

  /**
   * A static factory method that creates the Consumer that processes the tap. In this case we
   * write a message in LogCat.
   *
   * @return The processor consumer.
   */
  public static Consumer<Object> createTapProcessor() {
    return new Consumer<Object>() {
      @Override
      public void accept(Object o) {
        Log.d("Artist", "Tapped a MyView");
      }
    };
  }

  /**
   * A static factory method that creates the Function that maps RxBinding signals to another type.
   * In this case we map them to our instance of Signal.
   *
   * @return The mapper function.
   */
  public static Function<Object, Signal> createRxBindingSignalMapper() {
    return new Function<Object, Signal>() {
      @Override
      public Signal apply(Object o) throws Exception {
        return Signal.INSTANCE;
      }
    };
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



