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

package it.unimi.dsi.fastutil.bytes;

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

@FunctionalInterface
public interface ByteUnaryOperator extends UnaryOperator<Byte>, IntUnaryOperator
{
    byte apply(final byte p0);
    
    default ByteUnaryOperator identity() {
        return i -> i;
    }
    
    default ByteUnaryOperator negation() {
        return i -> (byte)(-i);
    }
    
    @Deprecated
    default int applyAsInt(final int x) {
        return this.apply(SafeMath.safeIntToByte(x));
    }
    
    @Deprecated
    default Byte apply(final Byte x) {
        return this.apply((byte)x);
    }
}
