|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xbase.lib.ObjectExtensions
public class ObjectExtensions
This is an extension library for all objects
.
Constructor Summary | |
---|---|
ObjectExtensions()
|
Method Summary | ||
---|---|---|
static boolean |
operator_equals(java.lang.Object a,
java.lang.Object b)
The equals operator. |
|
static
|
operator_mappedTo(A a,
B b)
The mappedTo operator yields a Pair with a as the key and
b as its value . |
|
static boolean |
operator_notEquals(java.lang.Object a,
java.lang.Object b)
The equals not operator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectExtensions()
Method Detail |
---|
public static boolean operator_notEquals(java.lang.Object a, java.lang.Object b)
equals not
operator. This is the equivalent to a negated, null-safe
Object.equals(Object)
method.
a
- an object.b
- another object.
true
if a
and b
are not equal.public static boolean operator_equals(java.lang.Object a, java.lang.Object b)
equals
operator. This is the equivalent to a null-safe invocation of
Object.equals(Object)
.
a
- an object.b
- another object.
true
if a
and b
are equal.public static <A,B> Pair<A,B> operator_mappedTo(A a, B b)
mappedTo
operator yields a Pair
with a
as the key
and
b
as its value
.
a
- an object.b
- another object.
Pair
. Never null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |