Package jromp.parallel.operation
Class ShiftLeftOperation<T extends Number>
java.lang.Object
jromp.parallel.operation.ShiftLeftOperation<T>
- Type Parameters:
T- the type of the value.
- All Implemented Interfaces:
Supplier<UnaryOperator<T>>,Operation<T>
Operation to perform a left shift operation on a value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the operation as aUnaryOperator.Returns the identifier of the operation.
-
Constructor Details
-
ShiftLeftOperation
Constructs a left shift operation.- Parameters:
value- the number of bits to shift to the left.
-
-
Method Details
-
identifier
Description copied from interface:OperationReturns the identifier of the operation.- Specified by:
identifierin interfaceOperation<T extends Number>- Returns:
- String representation of the operation.
-
get
Description copied from interface:OperationReturns the operation as aUnaryOperator.
-