Class OrderMissingLastAttribute<O>

  • All Implemented Interfaces:
    Attribute<O,​Integer>

    public class OrderMissingLastAttribute<O>
    extends OrderControlAttribute<O>
    An OrderControlAttribute which orders results such that objects without values for the given delegate attribute are always returned after objects with values for the attribute.
    Author:
    niall.gallagher
    • Constructor Detail

      • OrderMissingLastAttribute

        public OrderMissingLastAttribute​(Attribute<O,​A> delegateAttribute)
    • Method Detail

      • getValue

        public Integer getValue​(O object,
                                QueryOptions queryOptions)
        Description copied from class: SimpleAttribute
        Returns the (non-null) value of the attribute from the object.

        Specified by:
        getValue in class SimpleAttribute<O,​Integer>
        Parameters:
        object - The object from which the value of the attribute is required
        queryOptions - Optional parameters supplied by the application along with the operation which is causing this attribute to be invoked (either a query, or an update to the collection)
        Returns:
        The value for the attribute, which should never be null