Package org.apache.juneau.commons.bean
Record Class BeanMeta.BeanMetaValue<T>
java.lang.Object
java.lang.Record
org.apache.juneau.commons.bean.BeanMeta.BeanMetaValue<T>
- Type Parameters:
T- The bean type.- Record Components:
beanMeta- The bean metadata, ornull if the class is not a bean.notABeanReason- The reason why the class is not a bean, ornull if it is a bean.
public static record BeanMeta.BeanMetaValue<T>(BeanMeta<T> beanMeta, String notABeanReason)
extends Record
Represents the result of creating a BeanMeta, including the bean metadata and any reason why it's not a bean.
-
Constructor Summary
ConstructorsConstructorDescriptionBeanMetaValue(BeanMeta<T> beanMeta, String notABeanReason) Creates an instance of aBeanMetaValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbeanMeta()Returns the value of thebeanMetarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenotABeanReasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BeanMetaValue
Creates an instance of aBeanMetaValuerecord class.- Parameters:
beanMeta- the value for thebeanMetarecord componentnotABeanReason- the value for thenotABeanReasonrecord component
-
-
Method Details
-
optBeanMeta
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
beanMeta
Returns the value of thebeanMetarecord component.- Returns:
- the value of the
beanMetarecord component
-
notABeanReason
Returns the value of thenotABeanReasonrecord component.- Returns:
- the value of the
notABeanReasonrecord component
-