public void setTimes(float[] times) {
        if (times == null || times.length == 0) {
            throw new IllegalArgumentException(
                    "No keyframe times were provided.");
        }
        this.times = times;
        length = times[times.length - 1] - times[0];
    }
Sets the keyframe times.

@param times the desired keyframe times (alias created, not null, not empty)
jme3-core/src/main/java/com/jme3/anim/TransformTrack.java