Record Class StreamOpEntry<T>
java.lang.Object
java.lang.Record
org.aksw.shellgebra.algebra.stream.transformer.StreamOpEntry<T>
- All Implemented Interfaces:
Map.Entry<StreamOp,T>, HasStreamOp
public record StreamOpEntry<T>(StreamOp op, T data)
extends Record
implements HasStreamOp, Map.Entry<StreamOp,T>
Groups a StreamOp with a custom value.
Because it implements
HasStreamOp it can be used
directly with StreamOpTransformGeneric.-
Constructor Summary
ConstructorsConstructorDescriptionStreamOpEntry(StreamOp op, T data) Creates an instance of aStreamOpEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.getKey()getValue()final inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamOpEntry
-
-
Method Details
-
getStreamOp
- Specified by:
getStreamOpin interfaceHasStreamOp
-
getKey
-
getValue
-
setValue
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-