Record Class Boundedness
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.streams.Boundedness
- Record Components:
violations- the stages that needed a bounded stream and did not have one, in pipeline orderboundedAtEnd- whether aheadhas bounded the stream by the time it reaches the termination
public record Boundedness(List<EK9Parser.StreamPartContext> violations, boolean boundedAtEnd)
extends Record
The outcome of walking a pipeline's stages from a source that is not bounded (
BoundednessWalk).-
Constructor Summary
ConstructorsConstructorDescriptionBoundedness(List<EK9Parser.StreamPartContext> violations, boolean boundedAtEnd) Creates an instance of aBoundednessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theboundedAtEndrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationsrecord component.
-
Constructor Details
-
Boundedness
Creates an instance of aBoundednessrecord class.- Parameters:
violations- the value for theviolationsrecord componentboundedAtEnd- the value for theboundedAtEndrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
violations
Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-
boundedAtEnd
public boolean boundedAtEnd()Returns the value of theboundedAtEndrecord component.- Returns:
- the value of the
boundedAtEndrecord component
-