Record Class AlloySession.SigInfo
java.lang.Object
java.lang.Record
org.clafer.alloy.solve.AlloySession.SigInfo
- Record Components:
label- its label, e.g.,this/c0_Amultiplicity-One,Lone,SomeorAnysubset- the type of a subset sig, without its braces, or emptystartingScope- its scope in the command, if any
- Enclosing class:
AlloySession
public static record AlloySession.SigInfo(String label, String multiplicity, String subset, OptionalInt startingScope)
extends Record
A sig of the model, as
load sends it.-
Constructor Summary
ConstructorsConstructorDescriptionSigInfo(String label, String multiplicity, String subset, OptionalInt startingScope) Creates an instance of aSigInforecord 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.label()Returns the value of thelabelrecord component.Returns the value of themultiplicityrecord component.Returns the value of thestartingScoperecord component.subset()Returns the value of thesubsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SigInfo
Creates an instance of aSigInforecord class.- Parameters:
label- the value for thelabelrecord componentmultiplicity- the value for themultiplicityrecord componentsubset- the value for thesubsetrecord componentstartingScope- the value for thestartingScoperecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
label
-
multiplicity
Returns the value of themultiplicityrecord component.- Returns:
- the value of the
multiplicityrecord component
-
subset
-
startingScope
Returns the value of thestartingScoperecord component.- Returns:
- the value of the
startingScoperecord component
-