Package io.jmix.flowui.model
Record Class CollectionContainerSortContext
java.lang.Object
java.lang.Record
io.jmix.flowui.model.CollectionContainerSortContext
- Record Components:
container- collection container for which a sorter is requestedloader- collection loader associated with the container, ornullif the container has no loader
public record CollectionContainerSortContext(CollectionContainer<?> container, @Nullable BaseCollectionLoader loader)
extends Record
Contains information for creating a sorter for a
CollectionContainer.
Providers that need to distinguish collection property containers can check whether container() is an
instance of CollectionPropertyContainer.
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionContainerSortContext(CollectionContainer<?> container, @Nullable BaseCollectionLoader loader) Creates a context for a collection container sorter request. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable BaseCollectionLoaderloader()Returns the value of theloaderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollectionContainerSortContext
public CollectionContainerSortContext(CollectionContainer<?> container, @Nullable BaseCollectionLoader loader) Creates a context for a collection container sorter request.- Parameters:
container- collection container for which a sorter is requestedloader- collection loader associated with the container, ornullif the container has no loader
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
container
Returns the value of thecontainerrecord component.- Returns:
- the value of the
containerrecord component
-
loader
Returns the value of theloaderrecord component.- Returns:
- the value of the
loaderrecord component
-