Record Class AlloyXml.Naming
java.lang.Object
java.lang.Record
org.clafer.alloy.solve.AlloyXml.Naming
- Record Components:
clafers- the clafers by their Alloy namestoUid- the UID of a clafer by its Alloy nameuseUids- the instances are named by the UIDs of their clafersaddTypes- each instance has the super clafer of its claferstrings- the strings by their integers
- Enclosing class:
AlloyXml
public static record AlloyXml.Naming(Map<String, AlloyXml.ClaferInfo> clafers, UnaryOperator<String> toUid, boolean useUids, boolean addTypes, Map<Integer,String> strings)
extends Record
How the instances are named.
-
Constructor Summary
ConstructorsConstructorDescriptionNaming(Map<String, AlloyXml.ClaferInfo> clafers, UnaryOperator<String> toUid, boolean useUids, boolean addTypes, Map<Integer, String> strings) Creates an instance of aNamingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddTypes()Returns the value of theaddTypesrecord component.clafers()Returns the value of theclafersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.strings()Returns the value of thestringsrecord component.final StringtoString()Returns a string representation of this record class.toUid()Returns the value of thetoUidrecord component.booleanuseUids()Returns the value of theuseUidsrecord component.
-
Constructor Details
-
Naming
public Naming(Map<String, AlloyXml.ClaferInfo> clafers, UnaryOperator<String> toUid, boolean useUids, boolean addTypes, Map<Integer, String> strings) Creates an instance of aNamingrecord class.
-
-
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. -
clafers
-
toUid
-
useUids
-
addTypes
-
strings
-