Module stormpot

Record Class PoolBuilderPermissions

java.lang.Object
java.lang.Record
stormpot.internal.PoolBuilderPermissions
Record Components:
setAllocator - true if the allocator can be changed, otherwise false.
setSize - true if the size can be changed, otherwise false.
setExpiration - true if the expiration can be changed, otherwise false.
setThreadFactory - true if the thread factory can be changed, otherwise false.
setBackgroundExpiration - true if background expiration checking can be enabled or disabled, otherwise false.

public record PoolBuilderPermissions(boolean setAllocator, boolean setSize, boolean setExpiration, boolean setThreadFactory, boolean setBackgroundExpiration) extends Record
A holder of permissions, deciding what PoolBuilder settings are allowed to be changed.
  • Constructor Details

    • PoolBuilderPermissions

      public PoolBuilderPermissions(boolean setAllocator, boolean setSize, boolean setExpiration, boolean setThreadFactory, boolean setBackgroundExpiration)
      Creates an instance of a PoolBuilderPermissions record class.
      Parameters:
      setAllocator - the value for the setAllocator record component
      setSize - the value for the setSize record component
      setExpiration - the value for the setExpiration record component
      setThreadFactory - the value for the setThreadFactory record component
      setBackgroundExpiration - the value for the setBackgroundExpiration record component
  • Method Details

    • 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. All components in this record class 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.
    • setAllocator

      public boolean setAllocator()
      Returns the value of the setAllocator record component.
      Returns:
      the value of the setAllocator record component
    • setSize

      public boolean setSize()
      Returns the value of the setSize record component.
      Returns:
      the value of the setSize record component
    • setExpiration

      public boolean setExpiration()
      Returns the value of the setExpiration record component.
      Returns:
      the value of the setExpiration record component
    • setThreadFactory

      public boolean setThreadFactory()
      Returns the value of the setThreadFactory record component.
      Returns:
      the value of the setThreadFactory record component
    • setBackgroundExpiration

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