Class OrderMissingLastAttribute<O>
- java.lang.Object
-
- com.googlecode.cqengine.attribute.support.AbstractAttribute<O,A>
-
- com.googlecode.cqengine.attribute.SimpleAttribute<O,Integer>
-
- com.googlecode.cqengine.attribute.OrderControlAttribute<O>
-
- com.googlecode.cqengine.attribute.OrderMissingLastAttribute<O>
-
public class OrderMissingLastAttribute<O> extends OrderControlAttribute<O>
AnOrderControlAttribute
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
-
-
Field Summary
-
Fields inherited from class com.googlecode.cqengine.attribute.OrderControlAttribute
delegateAttribute
-
-
Constructor Summary
Constructors Constructor Description OrderMissingLastAttribute(Attribute<O,A> delegateAttribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(Object other)
Integer
getValue(O object, QueryOptions queryOptions)
Returns the (non-null) value of the attribute from the object.-
Methods inherited from class com.googlecode.cqengine.attribute.OrderControlAttribute
getDelegateAttribute
-
Methods inherited from class com.googlecode.cqengine.attribute.SimpleAttribute
getValues
-
Methods inherited from class com.googlecode.cqengine.attribute.support.AbstractAttribute
calcHashCode, equals, getAttributeName, getAttributeType, getObjectType, hashCode, toString
-
-
-
-
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 classSimpleAttribute<O,Integer>
- Parameters:
object
- The object from which the value of the attribute is requiredqueryOptions
- 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
-
canEqual
public boolean canEqual(Object other)
- Overrides:
canEqual
in classSimpleAttribute<O,Integer>
-
-