ResourceComparator

public class ResourceComparator implements Comparator<ResourceDto>, Serializable

The comparator used for ordering content for the UI grid. It can compare content by either using the content name or content type.

Constructors

ResourceComparator

public ResourceComparator(GridSettings settings)

Constructs an instance using taking the sorting settings from the provided grid settings.

Parameters:
  • settings – grid settings based on which this comparator will be created

Methods

compare

public int compare(ResourceDto first, ResourceDto second)