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
ConstructorsConstructorDescriptionId(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 aIdrecord class.Id(List<TypeMirror> types, List<NamedAttributeMap<?>> attributes, NamedAttributeMap<?> governingScopeId, int rank) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealternaterecord component.Returns the value of theattributesrecord component.final Optional<DynamicConstantDesc<Id>> final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegoverningScopeIdrecord component.final inthashCode()Returns a hash code value for this object.intrank()Returns the value of therankrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 aIdrecord class.- Parameters:
types- the value for thetypesrecord componentattributes- the value for theattributesrecord componentgoverningScopeId- the value for thegoverningScopeIdrecord componentalternate- the value for thealternaterecord componentrank- the value for therankrecord component
-
-
Method Details
-
describeConstable
- Specified by:
describeConstablein 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 thetypesrecord component.- Returns:
- the value of the
typesrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
governingScopeId
Returns the value of thegoverningScopeIdrecord component.- Specified by:
governingScopeIdin interfaceScopeMember- Returns:
- the value of the
governingScopeIdrecord component
-
alternate
Returns the value of thealternaterecord component. -
rank
Returns the value of therankrecord component.
-