code: public void setKeyframes(Keyframe... values) {
          int numKeyframes = values.length;
          Keyframe keyframes[] = new Keyframe[Math.max(numKeyframes,2)];
          mValueType = ((Keyframe)values[0]).getType();
          for (int i = 0; i < numKeyframes; ++i) {
              keyframes[i] = (Keyframe)values[i];
          }
          mKeyframeSet = new KeyframeSet(keyframes);
      }
docs: Set the animated values for this object to this set of Keyframes.
  
  @param values One or more values that the animation will animate between.