Record Class ArgsModular<T>
java.lang.Object
java.lang.Record
org.aksw.shellgebra.shim.core.ArgsModular<T>
- All Implemented Interfaces:
Args
-
Constructor Summary
ConstructorsConstructorDescriptionArgsModular(T model, ArgumentListRenderer<? super T> renderer, Predicate<? super T> stdinTest) Creates an instance of aArgsModularrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.static <T> Argsof(T model, ArgumentListRenderer<? super T> renderer, Predicate<? super T> stdinTest) Boolean for whether the command is known to (not) read from stdin.ArgumentListRenderer<? super T> renderer()Returns the value of therendererrecord component.Returns the value of thestdinTestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArgsModular
public ArgsModular(T model, ArgumentListRenderer<? super T> renderer, Predicate<? super T> stdinTest) Creates an instance of aArgsModularrecord class.- Parameters:
model- the value for themodelrecord componentrenderer- the value for therendererrecord componentstdinTest- the value for thestdinTestrecord component
-
-
Method Details
-
toArgList
-
of
public static <T> Args of(T model, ArgumentListRenderer<? super T> renderer, Predicate<? super T> stdinTest) -
readsStdin
Boolean for whether the command is known to (not) read from stdin. An absent value means unknown. Engines are free to interpret an absent value as they see fit, log warnings or fail when encountering unknown values.- Specified by:
readsStdinin interfaceArgs
-
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). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
renderer
Returns the value of therendererrecord component.- Returns:
- the value of the
rendererrecord component
-
stdinTest
-