Implemented By:
NSObject (Yellow Box)
Package:
com.apple.client.eocontrol (Java Client)
The EOQualifierComparison interface defines methods for comparing values. These methods are used for evaluating qualifiers in memory. Though declared for NSObject in Yellow Box, most of these methods work properly only with value classes: NSString, NSDate, NSNumber, NSDecimalNumber, and EONullValue. Yellow Box implements these methods as part of NSObject-there is no separate interface. In Java Client, support for these methods is provided for java.lang.String, java.lang.Number, and java.lang.Date using EOQualifier.ComparisonSupport. You should implement this interface for any value classes you write that you want to be evaluated in memory by EOQualifier instances.
doesContain
public abstract boolean doesContain (java.lang.Object anObject)
Returns true if the receiver contains anObject, false if it doesn't. NSObject's implementation of this method returns true only if the receiver is a kind of NSArray and contains anObject. In all other cases it returns false .
isCaseInsensitiveLike
public abstract boolean isCaseInsensitiveLike (java.lang.Object anObject)
Returns true if the receiver is a case-insensitive match for aString, false if it isn't. See "Using Wildcards" in the EOQualifier class specification for the wildcard characters allowed. NSObject's implementation returns false ; NSString's performs a proper case-insensitive comparison.
See also: - isLike , - doesContain , - isEqualTo , - isGreaterThan , - isGreaterThanOrEqualTo , - isLessThan , - isLessThanOrEqualTo ,- isNotEqualTo
isEqualTo
public abstract boolean isEqualTo (java.lang.Object anObject)
Returns true if the receiver is equal to anObject, false if it isn't. NSObject's implementation invokes isEqual and returns the result.
See also: - doesContain , - isGreaterThan , - isGreaterThanOrEqualTo , - isLessThan , - isLessThanOrEqualTo , - isLike , - isCaseInsensitiveLike , - isNotEqualTo
isGreaterThan
public abstract boolean isGreaterThan (java.lang.Object anObject)
Returns true if the receiver is greater than anObject, false if it isn't. NSObject's implementation invokes compare: and returns true if the result is NSOrderedDescending.
See also: - doesContain , - isEqualTo , - isGreaterThanOrEqualTo , - isLessThan , - isLessThanOrEqualTo , - isLike , - isCaseInsensitiveLike , - isNotEqualTo
isGreaterThanOrEqualTo
public abstract boolean isGreaterThanOrEqualTo (java.lang.Object anObject)
Returns true if the receiver is greater than or equal to anObject, false if it isn't. NSObject's implementation invokes compare:
and returns true if the result is NSOrderedAscending.
See also: - doesContain , - isEqualTo , - isGreaterThan , - isLessThan , - isLessThanOrEqualTo , - isLike , - isCaseInsensitiveLike , - isNotEqualTo
isLessThan
public abstract boolean isLessThan (java.lang.Object anObject)
Returns true if the receiver is less than anObject, false if it isn't. NSObject's implementation invokes compare:
and returns true if the result is NSOrderedAscending.
See also: - doesContain , - isEqualTo , - isGreaterThan , - isGreaterThanOrEqualTo , - isLessThanOrEqualTo , - isLike , - isCaseInsensitiveLike , - isNotEqualTo
isLessThanOrEqualTo
public abstract boolean isLessThanOrEqualTo (java.lang.Object anObject)
Returns true if the receiver is less than or equal to anObject, false if it isn't. NSObject's implementation invokes compare:
and returns true if the result is NSOrderedAscending or NSOrderedSame.
See also: - doesContain , - isEqualTo , - isGreaterThan , - isGreaterThanOrEqualTo , - isLessThan , - isLike , - isCaseInsensitiveLike , - isNotEqualTo
isLike
public abstract boolean isLike (java.lang.Object anObject)
Returns true if the receiver matches aString according to the semantics of the SQL like comparison operator, false if it doesn't. See "Using Wildcards" in the EOQualifier class specification for the wildcard characters allowed. NSObject's implementation returns false ; NSString's performs a proper comparison.
See also: - isCaseInsensitiveLike , - doesContain , - isEqualTo , - isGreaterThan , - isGreaterThanOrEqualTo , - isLessThan , - isLessThanOrEqualTo , - isNotEqualTo
isNotEqualTo
public abstract boolean isNotEqualTo (java.lang.Object anObject)
Returns true if the receiver is not equal to anObject, false if it is. NSObject's implementation invokes isEqual , inverts the result, and returns it.
See also: - doesContain , - isEqualTo , - isGreaterThan , - isGreaterThanOrEqualTo , - isLessThan , - isLessThanOrEqualTo , - isLike , - isCaseInsensitiveLike