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, subList
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
public 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()
StatementGroup
getStatements
in interface StatementGroup
public StatementGroup getBestStatements()
StatementGroup
StatementRank.PREFERRED
if they exists or the one with rank StatementRank.NORMAL
getBestStatements
in interface StatementGroup
public PropertyIdValue getProperty()
StatementGroup
Claim
of each
statement in this group.getProperty
in interface StatementGroup
public EntityIdValue getSubject()
StatementGroup
Claim
of each statement in this
group.getSubject
in interface StatementGroup
public 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)
StatementGroup
withStatement
in interface StatementGroup
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage