46#include <Foundation/NSString.h>
48@implementation NSObject (OLComparison)
50- (BOOL) isEqualTo: (
id)object
52 return (
object !=
nil && [
self compare:
object] == NSOrderedSame) ?
56- (BOOL) isGreaterThan: (
id)object
58 return (
object !=
nil && [
self compare:
object] == NSOrderedDescending) ?
62- (BOOL) isGreaterThanOrEqualTo: (
id)object
64 return (
object !=
nil && [
self compare:
object] != NSOrderedAscending) ?
68- (BOOL) isLessThan: (
id)object
70 return (
object !=
nil && [
self compare:
object] == NSOrderedAscending) ?
74- (BOOL) isLessThanOrEqualTo: (
id)object
76 return (
object !=
nil && [
self compare:
object] != NSOrderedDescending) ?
80- (BOOL) isNotEqualTo: (
id)object
82 return (
object !=
nil && [
self compare:
object] != NSOrderedSame) ?