Record Class LoadingParameters<T>

java.lang.Object
java.lang.Record
cz.cvut.kbss.jopa.sessions.util.LoadingParameters<T>

public record LoadingParameters<T>(Class<T> entityClass, URI identifier, Descriptor descriptor, boolean forceEager, boolean bypassCache) extends Record
  • Constructor Details

    • LoadingParameters

      public LoadingParameters(Class<T> cls, URI identifier, Descriptor descriptor)
    • LoadingParameters

      public LoadingParameters(Class<T> cls, URI identifier, Descriptor descriptor, boolean forceEager)
    • LoadingParameters

      public LoadingParameters(Class<T> entityClass, URI identifier, Descriptor descriptor, boolean forceEager, boolean bypassCache)
      Creates an instance of a LoadingParameters record class.
      Parameters:
      entityClass - the value for the entityClass record component
      identifier - the value for the identifier record component
      descriptor - the value for the descriptor record component
      forceEager - the value for the forceEager record component
      bypassCache - the value for the bypassCache record component
  • Method Details

    • withBypassCache

      public LoadingParameters<T> withBypassCache()
    • 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.
    • entityClass

      public Class<T> entityClass()
      Returns the value of the entityClass record component.
      Returns:
      the value of the entityClass record component
    • identifier

      public URI identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • descriptor

      public Descriptor descriptor()
      Returns the value of the descriptor record component.
      Returns:
      the value of the descriptor record component
    • forceEager

      public boolean forceEager()
      Returns the value of the forceEager record component.
      Returns:
      the value of the forceEager record component
    • bypassCache

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