java.lang.Object
java.lang.Record
org.microbean.bean.Id
- All Implemented Interfaces:
Constable
,Ranked
,ScopeMember
public record Id(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId, boolean alternate, int rank)
extends Record
implements Constable, Ranked, ScopeMember
-
Field Summary
Fields inherited from interface org.microbean.bean.Ranked
DEFAULT_RANK
-
Constructor Summary
ConstructorDescriptionId
(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId) Id
(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId, boolean alternate, int rank) Creates an instance of aId
record class.Id
(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId, int rank) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thealternate
record component.Returns the value of theattributes
record component.final Optional
<DynamicConstantDesc<Id>> final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegoverningScopeId
record component.final int
hashCode()
Returns a hash code value for this object.int
rank()
Returns the value of therank
record component.final String
toString()
Returns a string representation of this record class.types()
Returns the value of thetypes
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.microbean.scope.ScopeMember
governedBy
-
Constructor Details
-
Id
public Id(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId) -
Id
public Id(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId, int rank) -
Id
public Id(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId, boolean alternate, int rank) Creates an instance of aId
record class.- Parameters:
types
- the value for thetypes
record componentattributes
- the value for theattributes
record componentgoverningScopeId
- the value for thegoverningScopeId
record componentalternate
- the value for thealternate
record componentrank
- the value for therank
record component
-
-
Method Details
-
describeConstable
- Specified by:
describeConstable
in interfaceConstable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
types
Returns the value of thetypes
record component.- Returns:
- the value of the
types
record component
-
attributes
Returns the value of theattributes
record component.- Returns:
- the value of the
attributes
record component
-
governingScopeId
Returns the value of thegoverningScopeId
record component.- Specified by:
governingScopeId
in interfaceScopeMember
- Returns:
- the value of the
governingScopeId
record component
-
alternate
Returns the value of thealternate
record component. -
rank
Returns the value of therank
record component.
-