Record Class JuneauBeanStoreExtension.OverrideSet

java.lang.Object
java.lang.Record
org.apache.juneau.bct.junit.JuneauBeanStoreExtension.OverrideSet
Record Components:
store - The overlay BeanStore carrying the discovered overrides (method-scope chained over class-scope). Usable directly as a builder overridingBeanStore(...) argument for Mode.INJECT, or as a pushOverlay(...) argument for Mode.OVERLAY.
mode - The unified declaration mode (Mode.INJECT by default).
empty - Whether no @TestBean members 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

    Constructors
    Constructor
    Description
    OverrideSet(TestBeanStore store, Mode mode, boolean empty)
    Creates an instance of a OverrideSet record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the empty record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns whether no @TestBean members were discovered.
    Returns the value of the mode record component.
    Returns the value of the store record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OverrideSet

      public OverrideSet(TestBeanStore store, Mode mode, boolean empty)
      Creates an instance of a OverrideSet record class.
      Parameters:
      store - the value for the store record component
      mode - the value for the mode record component
      empty - the value for the empty record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns whether no @TestBean members were discovered.
      Returns:
      true if the override set is empty.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • store

      public TestBeanStore store()
      Returns the value of the store record component.
      Returns:
      the value of the store record component
    • mode

      public Mode mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • empty

      public boolean empty()
      Returns the value of the empty record component.
      Returns:
      the value of the empty record component