// 
// Decompiled by Procyon v0.6.0
// 

package it.unimi.dsi.fastutil.shorts;

import it.unimi.dsi.fastutil.SafeMath;
import java.util.function.IntUnaryOperator;
import java.util.function.UnaryOperator;

@FunctionalInterface
public interface ShortUnaryOperator extends UnaryOperator<Short>, IntUnaryOperator
{
    short apply(final short p0);
    
    default ShortUnaryOperator identity() {
        return i -> i;
    }
    
    default ShortUnaryOperator negation() {
        return i -> (short)(-i);
    }
    
    @Deprecated
    default int applyAsInt(final int x) {
        return this.apply(SafeMath.safeIntToShort(x));
    }
    
    @Deprecated
    default Short apply(final Short x) {
        return this.apply((short)x);
    }
}
