Class DataQuery
java.lang.Object
org.spongepowered.api.data.persistence.DataQuery
-
Method Summary
Modifier and TypeMethodDescriptionasString(char separator) Gets this query as a string separated by the given separator character.Gets this query as a string separated by the given separator.booleanvoidinthashCode()iterator()last()Gets the last entry of thisDataQuery.static DataQueryof()Gets an emptyDataQuery.static DataQueryConstructs a query using the given separator character and path.static DataQueryConstructs a query using the given parts.static DataQueryConstructs a query using the given parts.parts()Gets the parts that make up this query.pop()Returns aDataQuerywhere the last node is "popped" off.popFirst()Returns aDataQuerywhere the first node is "popped" off.Returns the parts of this query as individual queries.Returns a new query that is made up of this query's parts followed by the given query.Returns a new query that is made up of this query's parts followed by the given query's parts.toString()
-
Method Details
-
of
-
of
Constructs a query using the given separator character and path.As an example,
new DataQuery('/', "a/b/c")andnew DataQuery('.', "a.b.c")represent the same path but are constructed using different separators.- Parameters:
separator- The separatorpath- The path- Returns:
- The newly constructed
DataQuery
-
of
-
of
-
parts
-
then
-
then
-
queryParts
-
pop
-
popFirst
-
last
-
asString
-
asString
Gets this query as a string separated by the given separator character.- Parameters:
separator- The separator- Returns:
- This query as a string
-
toString
-
hashCode
-
equals
-
iterator
-
forEach
-
spliterator
- Specified by:
spliteratorin interfaceIterable<String>
-