| Package | com.threerings.util |
| Class | public class Predicates |
| Method | Defined by | ||
|---|---|---|---|
|
createAnd(... predicates):Function
[static]
Return a predicate that is true if all the specified predicate Functions are true
for any item.
| Predicates | ||
|
createEquals(value:Object):Function
[static]
Create a predicate that tests if the item is Util.equals() to the specified value.
| Predicates | ||
|
createHasProperty(propName:String):Function
[static]
Create a predicate that tests if the item has the specified property (with any value).
| Predicates | ||
|
createIn(array:Array):Function
[static]
Create a predicate that returns true if the item is in the specified Array.
| Predicates | ||
|
createIs(clazz:Class):Function
[static]
Return a predicate that tests for items that are "is" the specified class.
| Predicates | ||
|
createNot(pred:Function):Function
[static]
Return a predicate that is the negation of the specified predicate.
| Predicates | ||
|
createOr(... predicates):Function
[static]
Return a predicate that is true if any of the specified predicate Functions are true
for any item.
| Predicates | ||
|
createPropertyEquals(propName:String, value:Object):Function
[static]
Create a predicate that tests if the item has a property that is Util.equals() to the
specified value.
| Predicates | ||
|
isNull(item:*, ... ignored):Boolean
[static]
A predicate that tests for null (or undefined) items.
| Predicates | ||
|
notNull(item:*, ... ignored):Boolean
[static]
A predicate that tests for items that are not null (or undefined).
| Predicates | ||
| createAnd | () | method |
public static function createAnd(... predicates):FunctionReturn a predicate that is true if all the specified predicate Functions are true for any item.
Parameters... predicates |
Function |
| createEquals | () | method |
public static function createEquals(value:Object):FunctionCreate a predicate that tests if the item is Util.equals() to the specified value.
Parametersvalue:Object |
Function |
| createHasProperty | () | method |
public static function createHasProperty(propName:String):FunctionCreate a predicate that tests if the item has the specified property (with any value).
ParameterspropName:String |
Function |
| createIn | () | method |
public static function createIn(array:Array):FunctionCreate a predicate that returns true if the item is in the specified Array.
Parametersarray:Array |
Function |
| createIs | () | method |
public static function createIs(clazz:Class):FunctionReturn a predicate that tests for items that are "is" the specified class.
Parametersclazz:Class |
Function |
| createNot | () | method |
public static function createNot(pred:Function):FunctionReturn a predicate that is the negation of the specified predicate.
Parameterspred:Function |
Function |
| createOr | () | method |
public static function createOr(... predicates):FunctionReturn a predicate that is true if any of the specified predicate Functions are true for any item.
Parameters... predicates |
Function |
| createPropertyEquals | () | method |
public static function createPropertyEquals(propName:String, value:Object):FunctionCreate a predicate that tests if the item has a property that is Util.equals() to the specified value.
ParameterspropName:String |
|
value:Object |
Function |
| isNull | () | method |
public static function isNull(item:*, ... ignored):BooleanA predicate that tests for null (or undefined) items.
Parametersitem:* |
|
... ignored |
Boolean |
| notNull | () | method |
public static function notNull(item:*, ... ignored):BooleanA predicate that tests for items that are not null (or undefined).
Parametersitem:* |
|
... ignored |
Boolean |