Package org.apache.juneau.bct.junit
Record Class JuneauBeanStoreExtension.OverrideSet
java.lang.Object
java.lang.Record
org.apache.juneau.bct.junit.JuneauBeanStoreExtension.OverrideSet
- Record Components:
store- The overlayBeanStorecarrying the discovered overrides (method-scope chained over class-scope). Usable directly as a builderoverridingBeanStore(...)argument forMode.INJECT, or as apushOverlay(...)argument forMode.OVERLAY.mode- The unified declaration mode (Mode.INJECTby default).empty- Whether no@TestBeanmembers were discovered.
- Enclosing class:
- JuneauBeanStoreExtension
public static record JuneauBeanStoreExtension.OverrideSet(TestBeanStore store, Mode mode, boolean empty)
extends Record
The flattened result of
JuneauBeanStoreExtension.discoverOverrides(Object): the @TestBean overlay store, the unified
Mode of all declarations, and whether any were found.- Since:
- 10.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionOverrideSet(TestBeanStore store, Mode mode, boolean empty) Creates an instance of aOverrideSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()Returns the value of theemptyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns whether no@TestBeanmembers were discovered.mode()Returns the value of themoderecord component.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isEmpty
Returns whether no@TestBeanmembers were discovered.- Returns:
true if the override set is empty.
-
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 '=='. -
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
empty
Returns the value of theemptyrecord component.- Returns:
- the value of the
emptyrecord component
-