java.io.Serializable, java.lang.Iterable<Statement>, StatementGrouppublic class StatementGroupImpl extends java.lang.Object implements StatementGroup, java.io.Serializable
StatementGroup.| Constructor | Description |
|---|---|
StatementGroupImpl(java.util.List<Statement> statements) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
PropertyIdValue |
getProperty() |
Get the property used in the main snak of the
Claim of each
statement in this group. |
java.util.List<Statement> |
getStatements() |
Get the list of Statements of this group.
|
EntityIdValue |
getSubject() |
Get the subject used in the
Claim of each statement in this
group. |
int |
hashCode() |
|
java.util.Iterator<Statement> |
iterator() |
|
java.lang.String |
toString() |
public StatementGroupImpl(java.util.List<Statement> statements)
statements - a non-empty list of statements that use the same subject and
main-snak property in their claimpublic java.util.List<Statement> getStatements()
StatementGroupgetStatements in interface StatementGrouppublic PropertyIdValue getProperty()
StatementGroupClaim of each
statement in this group.getProperty in interface StatementGrouppublic EntityIdValue getSubject()
StatementGroupClaim of each statement in this
group.getSubject in interface StatementGrouppublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage