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

package it.unimi.dsi.fastutil.chars;

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

@FunctionalInterface
public interface CharUnaryOperator extends UnaryOperator<Character>, IntUnaryOperator
{
    char apply(final char p0);
    
    default CharUnaryOperator identity() {
        return i -> i;
    }
    
    @Deprecated
    default int applyAsInt(final int x) {
        return this.apply(SafeMath.safeIntToChar(x));
    }
    
    @Deprecated
    default Character apply(final Character x) {
        return this.apply((char)x);
    }
}
