Record Class BeanReduction<I>
java.lang.Object
java.lang.Record
org.microbean.bean.BeanReduction<I>
- Type Parameters:
I
- the type of contextual instances the suppliedBean
is capable of creating- Record Components:
attributedType
- anAttributedType
bean
- aBean
deemed 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 theattributedType
record component.bean()
Returns the value of thebean
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BeanReduction
Creates a newBeanReduction
.- Parameters:
attributedType
- anAttributedType
; must not benull
bean
- aBean
deemed 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 theattributedType
record component.- Returns:
- the value of the
attributedType
record component
-
bean
-