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 |
equalsAliasUpdate(AliasUpdate o1,
Object o2)
Returns
true if the two AliasUpdate objects contain exactly
the same data. |
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 |
equalsEntityRedirectDocument(EntityRedirectDocument o1,
Object o2)
Returns
true if the parameters are two EntityRedirectDocument objects with
exactly the same data. |
static boolean |
equalsFormDocument(FormDocument o1,
Object o2)
Returns
true if the parameters are two FormDocument objects with
exactly the same data. |
static boolean |
equalsFormUpdate(FormUpdate o1,
Object o2)
Returns
true if the two FormUpdate objects contain 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 |
equalsItemUpdate(ItemUpdate o1,
Object o2)
Returns
true if the two ItemUpdate objects contain exactly
the same data. |
static boolean |
equalsLexemeDocument(LexemeDocument o1,
Object o2)
Returns
true if the parameters are two LexemeDocument objects with
exactly the same data. |
static boolean |
equalsLexemeUpdate(LexemeUpdate o1,
Object o2)
Returns
true if the two LexemeUpdate objects contain exactly
the same data. |
static boolean |
equalsMediaInfoDocument(MediaInfoDocument o1,
Object o2)
Returns
true if the parameters are two MediaInfoDocument objects with
exactly the same data. |
static boolean |
equalsMediaInfoUpdate(MediaInfoUpdate o1,
Object o2)
Returns
true if the two MediaInfoUpdate objects contain
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 |
equalsPropertyUpdate(PropertyUpdate o1,
Object o2)
Returns
true if the two PropertyUpdate objects contain
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 |
equalsSenseDocument(SenseDocument o1,
Object o2)
Returns
true if the parameters are two SenseDocument objects with
exactly the same data. |
static boolean |
equalsSenseUpdate(SenseUpdate o1,
Object o2)
Returns
true if the two SenseUpdate objects contain 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 |
equalsStatementUpdate(StatementUpdate o1,
Object o2)
Returns
true if the two StatementUpdate objects contain
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 |
equalsTermUpdate(TermUpdate o1,
Object o2)
Returns
true if the two TermUpdate objects contain 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)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsDatatypeIdValue(DatatypeIdValue o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsTimeValue(TimeValue o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsGlobeCoordinatesValue(GlobeCoordinatesValue o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsStringValue(StringValue o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsMonolingualTextValue(MonolingualTextValue o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsQuantityValue(QuantityValue o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsValueSnak(ValueSnak o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsSomeValueSnak(SomeValueSnak o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsNoValueSnak(NoValueSnak o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsSnakGroup(SnakGroup o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsClaim(Claim o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsReference(Reference o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsStatement(Statement o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsStatementGroup(StatementGroup o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsSiteLink(SiteLink o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsPropertyDocument(PropertyDocument o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsItemDocument(ItemDocument o1, Object o2)
true
if the parameters are two 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 comparetrue
if both objects are equalpublic static boolean equalsLexemeDocument(LexemeDocument o1, Object o2)
true
if the parameters are two LexemeDocument
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 comparetrue
if both objects are equalpublic static boolean equalsFormDocument(FormDocument o1, Object o2)
true
if the parameters are two FormDocument
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 comparetrue
if both objects are equalpublic static boolean equalsSenseDocument(SenseDocument o1, Object o2)
true
if the parameters are two SenseDocument
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 comparetrue
if both objects are equalpublic static boolean equalsMediaInfoDocument(MediaInfoDocument o1, Object o2)
true
if the parameters are two MediaInfoDocument
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 comparetrue
if both objects are equalpublic static boolean equalsEntityRedirectDocument(EntityRedirectDocument o1, Object o2)
true
if the parameters are two EntityRedirectDocument
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 comparetrue
if both objects are equalpublic static boolean equalsTermUpdate(TermUpdate o1, Object o2)
true
if the two TermUpdate
objects contain exactly
the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsAliasUpdate(AliasUpdate o1, Object o2)
true
if the two AliasUpdate
objects contain exactly
the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsStatementUpdate(StatementUpdate o1, Object o2)
true
if the two StatementUpdate
objects contain
exactly the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsMediaInfoUpdate(MediaInfoUpdate o1, Object o2)
true
if the two MediaInfoUpdate
objects contain
exactly the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsItemUpdate(ItemUpdate o1, Object o2)
true
if the two ItemUpdate
objects contain exactly
the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsPropertyUpdate(PropertyUpdate o1, Object o2)
true
if the two PropertyUpdate
objects contain
exactly the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsSenseUpdate(SenseUpdate o1, Object o2)
true
if the two SenseUpdate
objects contain exactly
the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsFormUpdate(FormUpdate o1, Object o2)
true
if the two FormUpdate
objects contain exactly
the same data. It does not matter whether 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 comparetrue
if both objects are equalpublic static boolean equalsLexemeUpdate(LexemeUpdate o1, Object o2)
true
if the two LexemeUpdate
objects contain exactly
the same data. It does not matter whether 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 comparetrue
if both objects are equalCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage