Record Class Query
java.lang.Object
java.lang.Record
io.umadb.client.Query
- Record Components:
items- a non-null list of query items; may be empty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a newQuerywith the given item appended.static Queryempty()Creates an emptyQuerythat matches all events.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.static QueryCreates aQuerycontaining a single query item.static QueryCreates aQuerycontaining the given query items.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Query
Creates a newQuery.- Throws:
IllegalArgumentException- ifitemsisnull
-
-
Method Details
-
empty
-
of
Creates aQuerycontaining a single query item.- Parameters:
item- the query item- Returns:
- a
Querycontaining the given item - Throws:
IllegalArgumentException- ifitemisnull
-
of
Creates aQuerycontaining the given query items.- Parameters:
items- the query items- Returns:
- a
Querycontaining the given items - Throws:
IllegalArgumentException- ifitemsisnull
-
and
Returns a newQuerywith the given item appended.- Parameters:
item- the query item to add- Returns:
- a new
Queryincluding the given item - Throws:
IllegalArgumentException- ifitemisnull
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
items
-