Record Class BeanReduction<I>
java.lang.Object
java.lang.Record
org.microbean.bean.BeanReduction<I>
- Type Parameters:
I- the type of contextual instances the suppliedBeanis capable of creating- Record Components:
attributedType- anAttributedTypebean- aBeandeemed suitable for theattributedType
A pairing of an
AttributedType and a Bean resulting from a reduction.- Author:
- Laird Nelson
-
Constructor Summary
ConstructorsConstructorDescriptionBeanReduction(AttributedType attributedType, Bean<I> bean) Creates a newBeanReduction. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributedTyperecord component.bean()Returns the value of thebeanrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BeanReduction
Creates a newBeanReduction.- Parameters:
attributedType- anAttributedType; must not benullbean- aBeandeemed suitable for theattributedType; must not benull
-
-
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). -
attributedType
Returns the value of theattributedTyperecord component.- Returns:
- the value of the
attributedTyperecord component
-
bean
-