Record Class Bean<I>
java.lang.Object
java.lang.Record
org.microbean.bean.Bean<I>
- Type Parameters:
I- the type of the contextual instances the associatedFactorycreates- Record Components:
id- theId; must not benullfactory- theFactory; must not benull
-
Field Summary
Fields inherited from interface Aggregate
EMPTY_ASSIGNMENTS, EMPTY_DEPENDENCIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SequencedSet<? extends Assignment<?>> assign(Function<? super Annotated<? extends AnnotatedConstruct>, ?> r) final <X> Bean<X> cast()Returns thisBean, forcibly cast appropriately.final SequencedSet<? extends Annotated<? extends Element>> final Optional<DynamicConstantDesc<Bean<I>>> final booleanIndicates whether some other object is "equal to" this one.factory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Bean
-
-
Method Details
-
assign
public final SequencedSet<? extends Assignment<?>> assign(Function<? super Annotated<? extends AnnotatedConstruct>, ?> r) -
cast
-
dependencies
- Specified by:
dependenciesin interfaceAggregate
-
describeConstable
- Specified by:
describeConstablein interfaceConstable
-
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). -
hashCode
-
toString
-
id
-
factory
-