Package edu.wpi.grip.core
Class OperationMetaData
- java.lang.Object
-
- edu.wpi.grip.core.OperationMetaData
-
@Immutable public class OperationMetaData extends java.lang.Object
Holds metadata for an operation.
-
-
Constructor Summary
Constructors Constructor Description OperationMetaData(OperationDescription description, java.util.function.Supplier<Operation> operationSupplier)
Creates a metadata object for anOperation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationDescription
getDescription()
Gets the summary of the operation.java.util.function.Supplier<Operation>
getOperationSupplier()
Gets aSupplier
for the operation.java.lang.String
toString()
-
-
-
Constructor Detail
-
OperationMetaData
public OperationMetaData(OperationDescription description, java.util.function.Supplier<Operation> operationSupplier)
Creates a metadata object for anOperation
.- Parameters:
description
- the summary for theOperation
operationSupplier
- a supplier for theOperation
. This should return a new instance each time it's called.
-
-
Method Detail
-
getDescription
public OperationDescription getDescription()
Gets the summary of the operation.
-
getOperationSupplier
public java.util.function.Supplier<Operation> getOperationSupplier()
Gets aSupplier
for the operation. This should return a new instance each time it's called.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-