public class StatementGroupImpl extends AbstractList<Statement> implements StatementGroup
StatementGroup.modCount| Constructor and Description |
|---|
StatementGroupImpl(List<Statement> statements)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Statement |
get(int i) |
StatementGroup |
getBestStatements()
Get the best statements of this group.
|
PropertyIdValue |
getProperty()
Get the property used in the main snak of the
Claim of each
statement in this group. |
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() |
boolean |
isEmpty() |
Iterator<Statement> |
iterator() |
int |
size() |
String |
toString() |
StatementGroup |
withStatement(Statement statement)
Returns a new version of this group, where the given
statement has been added.
|
add, add, addAll, clear, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayaddAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArraypublic Statement get(int i)
public int size()
size in interface Collection<Statement>size in interface List<Statement>size in class AbstractCollection<Statement>public boolean isEmpty()
isEmpty in interface Collection<Statement>isEmpty in interface List<Statement>isEmpty in class AbstractCollection<Statement>public List<Statement> getStatements()
StatementGroupgetStatements in interface StatementGrouppublic StatementGroup getBestStatements()
StatementGroupStatementRank.PREFERRED
if they exists or the one with rank StatementRank.NORMALgetBestStatements 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 interface Collection<Statement>hashCode in interface List<Statement>hashCode in class AbstractList<Statement>public boolean equals(Object obj)
equals in interface Collection<Statement>equals in interface List<Statement>equals in class AbstractList<Statement>public String toString()
toString in class AbstractCollection<Statement>public StatementGroup withStatement(Statement statement)
StatementGroupwithStatement in interface StatementGroupCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage