// Path: app/src/main/java/com/annimon/hotarufx/exceptions/TypeException.java
// public class TypeException extends HotaruRuntimeException {
// 
//     public TypeException(String message) {
//         super(message);
//     }
// 
//     public TypeException(String message, SourcePosition start, SourcePosition end) {
//         super(message, start, end);
//     }
// }


import com.annimon.hotarufx.exceptions.TypeException;
import javafx.animation.Interpolator;
package com.annimon.hotarufx.lib;


public class InterpolatorValue implements Value {

    private final Interpolator interpolator;

    public InterpolatorValue(Interpolator interpolator) {
        this.interpolator = interpolator;
    }

    public Interpolator getInterpolator() {
        return interpolator;
    }

    @Override
    public int type() {
        return Types.INTERPOLATOR;
    }

    @Override
    public Object raw() {
        return interpolator;
    }

    @Override
    public Number asNumber() {
// Path: app/src/main/java/com/annimon/hotarufx/exceptions/TypeException.java
// public class TypeException extends HotaruRuntimeException {
// 
//     public TypeException(String message) {
//         super(message);
//     }
// 
//     public TypeException(String message, SourcePosition start, SourcePosition end) {
//         super(message, start, end);
//     }
// }


// Path: app/src/main/java/com/annimon/hotarufx/lib/InterpolatorValue.java
import com.annimon.hotarufx.exceptions.TypeException;
import javafx.animation.Interpolator;

package com.annimon.hotarufx.lib;


public class InterpolatorValue implements Value {

    private final Interpolator interpolator;

    public InterpolatorValue(Interpolator interpolator) {
        this.interpolator = interpolator;
    }

    public Interpolator getInterpolator() {
        return interpolator;
    }

    @Override
    public int type() {
        return Types.INTERPOLATOR;
    }

    @Override
    public Object raw() {
        return interpolator;
    }

    @Override
    public Number asNumber() {
        throw new TypeException("Cannot cast interpolator to number");