Package cz.cvut.kbss.jopa.sessions.util
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 Summary
ConstructorsConstructorDescriptionLoadingParameters(Class<T> cls, URI identifier, Descriptor descriptor) LoadingParameters(Class<T> cls, URI identifier, Descriptor descriptor, boolean forceEager) LoadingParameters(Class<T> entityClass, URI identifier, Descriptor descriptor, boolean forceEager, boolean bypassCache) Creates an instance of aLoadingParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebypassCacherecord component.Returns the value of thedescriptorrecord component.Returns the value of theentityClassrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceEagerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoadingParameters
-
LoadingParameters
-
LoadingParameters
public LoadingParameters(Class<T> entityClass, URI identifier, Descriptor descriptor, boolean forceEager, boolean bypassCache) Creates an instance of aLoadingParametersrecord class.- Parameters:
entityClass- the value for theentityClassrecord componentidentifier- the value for theidentifierrecord componentdescriptor- the value for thedescriptorrecord componentforceEager- the value for theforceEagerrecord componentbypassCache- the value for thebypassCacherecord component
-
-
Method Details
-
withBypassCache
-
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
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. -
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 '=='. -
entityClass
Returns the value of theentityClassrecord component.- Returns:
- the value of the
entityClassrecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
forceEager
public boolean forceEager()Returns the value of theforceEagerrecord component.- Returns:
- the value of the
forceEagerrecord component
-
bypassCache
public boolean bypassCache()Returns the value of thebypassCacherecord component.- Returns:
- the value of the
bypassCacherecord component
-