public class Equality extends Object
Note that it is desired that different implementations of the same interface are treated as equal if they contain the same data.
| Constructor and Description |
|---|
Equality() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equalsClaim(Claim o1,
Object o2)
Returns true if the parameters are two
Claim objects with exactly
the same data. |
static boolean |
equalsDatatypeIdValue(DatatypeIdValue o1,
Object o2)
Returns true if the parameters are two
DatatypeIdValue objects
with exactly the same data. |
static boolean |
equalsEntityIdValue(EntityIdValue o1,
Object o2)
Returns true if the parameters are two
EntityIdValue objects with
exactly the same data. |
static boolean |
equalsGlobeCoordinatesValue(GlobeCoordinatesValue o1,
Object o2)
Returns true if the parameters are two
GlobeCoordinatesValue
objects with exactly the same data. |
static boolean |
equalsItemDocument(ItemDocument o1,
Object o2)
Returns true if the parameters are two
ItemDocument objects with
exactly the same data. |
static boolean |
equalsMonolingualTextValue(MonolingualTextValue o1,
Object o2)
Returns true if the parameters are two
MonolingualTextValue
objects with exactly the same data. |
static boolean |
equalsNoValueSnak(NoValueSnak o1,
Object o2)
Returns true if the parameters are two
NoValueSnak objects with
exactly the same data. |
static boolean |
equalsPropertyDocument(PropertyDocument o1,
Object o2)
Returns true if the parameters are two
PropertyDocument objects
with exactly the same data. |
static boolean |
equalsQuantityValue(QuantityValue o1,
Object o2)
Returns true if the parameters are two
QuantityValue objects with
exactly the same data. |
static boolean |
equalsReference(Reference o1,
Object o2)
Returns true if the parameters are two
Reference objects with
exactly the same data. |
static boolean |
equalsSiteLink(SiteLink o1,
Object o2)
Returns true if the parameters are two
SiteLink objects with
exactly the same data. |
static boolean |
equalsSnakGroup(SnakGroup o1,
Object o2)
Returns true if the parameters are two
SnakGroup objects with
exactly the same data. |
static boolean |
equalsSomeValueSnak(SomeValueSnak o1,
Object o2)
Returns true if the parameters are two
SomeValueSnak objects with
exactly the same data. |
static boolean |
equalsStatement(Statement o1,
Object o2)
Returns true if the parameters are two
Statement objects with
exactly the same data. |
static boolean |
equalsStatementGroup(StatementGroup o1,
Object o2)
Returns true if the parameters are two
StatementGroup objects
with exactly the same data. |
static boolean |
equalsStringValue(StringValue o1,
Object o2)
Returns true if the parameters are two
StringValue objects with
exactly the same data. |
static boolean |
equalsTermedDocument(TermedDocument o1,
Object o2)
Returns true if the parameters are two
TermedDocument objects
with exactly the same data. |
static boolean |
equalsTimeValue(TimeValue o1,
Object o2)
Returns true if the parameters are two
TimeValue objects with
exactly the same data. |
static boolean |
equalsValueSnak(ValueSnak o1,
Object o2)
Returns true if the parameters are two
ValueSnak objects with
exactly the same data. |
public static boolean equalsEntityIdValue(EntityIdValue o1, Object o2)
EntityIdValue objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsDatatypeIdValue(DatatypeIdValue o1, Object o2)
DatatypeIdValue objects
with exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsTimeValue(TimeValue o1, Object o2)
TimeValue objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsGlobeCoordinatesValue(GlobeCoordinatesValue o1, Object o2)
GlobeCoordinatesValue
objects with exactly the same data. It does not matter if they are
different implementations of the interface as long as their content is
the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsStringValue(StringValue o1, Object o2)
StringValue objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsMonolingualTextValue(MonolingualTextValue o1, Object o2)
MonolingualTextValue
objects with exactly the same data. It does not matter if they are
different implementations of the interface as long as their content is
the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsQuantityValue(QuantityValue o1, Object o2)
QuantityValue objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsValueSnak(ValueSnak o1, Object o2)
ValueSnak objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsSomeValueSnak(SomeValueSnak o1, Object o2)
SomeValueSnak objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsNoValueSnak(NoValueSnak o1, Object o2)
NoValueSnak objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsSnakGroup(SnakGroup o1, Object o2)
SnakGroup objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsClaim(Claim o1, Object o2)
Claim objects with exactly
the same data. It does not matter if they are different implementations
of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsReference(Reference o1, Object o2)
Reference objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsStatement(Statement o1, Object o2)
Statement objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsStatementGroup(StatementGroup o1, Object o2)
StatementGroup objects
with exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.
Note that this includes the statement id, so that two statement objects
that "say the same thing" might still be unequal if they have different
ids.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsSiteLink(SiteLink o1, Object o2)
SiteLink objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsPropertyDocument(PropertyDocument o1, Object o2)
PropertyDocument objects
with exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsItemDocument(ItemDocument o1, Object o2)
ItemDocument objects with
exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to comparepublic static boolean equalsTermedDocument(TermedDocument o1, Object o2)
TermedDocument objects
with exactly the same data. It does not matter if they are different
implementations of the interface as long as their content is the same.o1 - the first object to compareo2 - the second object to compareCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage