Java 8 features - class 19- Primitive Type functional Interfaces for Function-Explained in Detail

Поділитися
Вставка
  • Опубліковано 18 лис 2024
  • You can learn Java with me as the Java Programming language is being made easily. It would take a period of minimum three months and maximum 6 months to master Java. I would recommend you to watch all my videos to crack any software interviews that would require Java Programming language as a primary skill.
    Primitive type functional interfaces for Function:-
    ========================================
    1. IntFunction R
    public R apply( int i)
    2. LongFunction R
    public R apply(long l)
    3. DoubleFunction R
    public R apply(double d)
    4. ToIntFunction T
    public int applyAsInt(T t)
    5. ToLongFunction T
    public long applyAsInt(T t)
    6. ToDoubleFunction T
    public double applyAsInt(T t)
    7. IntToLongFunction
    public long applyAsLong(int i)
    8. IntToDoubleFunction
    public double applyAsLong(int i)
    9. LongToIntFunction
    public int applyAsDouble(long l)
    10. LongToDoubleFunction
    public double applyAsDouble(long l)
    11. DoubleToIntFunction
    public int applyAsInt(double d)
    12. DoubleToLongFunction
    public long applyAslong(double d)
    13. ToIntBiFunction T, U
    public int applyAsInt(T t,U u);
    14. TolongBiFunction T, U
    public long applyAsLong(T t,U u);
    15. ToDoubleBiFunction T, U
    public double applyAsDouble(T t,U u);

КОМЕНТАРІ • 2