Primitive Type Specializations of UnaryOperator – Functional-Style Programming

Primitive Type Specializations of UnaryOperator<T> The UnaryOperator<T> interface has three primitive type specializations to int, long, and double. The specializations are named PrimUnaryOperator, where Prim is either Int, Long, or Double (Table 13.9). These non-generic unary operators have the functional method applyAsPrim: primitive -> primitive, where primitive is an int, long, or double—the operator takes … Read morePrimitive Type Specializations of UnaryOperator – Functional-Style Programming