/*
 * Copyright 2014-present Facebook, Inc.
 *
 * 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.facebook.litho.dataflow;

import android.view.animation.Interpolator;

/**
 * A {@link ValueNode} that will update its value by mapping an input value between 0 to 1.0
 * representing elapsed fraction of animation to a value that represents interpolated fraction.
 */
public class InterpolatorNode extends ValueNode {

  private final Interpolator mInterpolator;

  public InterpolatorNode(Interpolator interpolator) {
    mInterpolator = interpolator;
  }

  @Override
  protected float calculateValue(long frameTimeNanos) {
    float timingValue = getInput(DEFAULT_INPUT).getValue();
    return mInterpolator.getInterpolation(timingValue);
  }
}

@@ -654,13 +654,8 @@
 oid.
-view.
 anim
@@ -660,16 +660,20 @@
 imation.
+Time
 Interpol
@@ -943,16 +943,20 @@
 e final 
+Time
 Interpol
@@ -1002,16 +1002,20 @@
 torNode(
+Time
 Interpol

use android.animation.TimeInterpolator instead of android.view.animation.Interpolator on InterpolatorNode