Package org.graylog2.database.filtering
Record Class RangeFilter
java.lang.Object
java.lang.Record
org.graylog2.database.filtering.RangeFilter
- All Implemented Interfaces:
Filter
-
Constructor Summary
ConstructorsConstructorDescriptionRangeFilter(String field, Object from, Object to) Creates an instance of aRangeFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.from()Returns the value of thefromrecord component.inthashCode()Returns a hash code value for this object.to()Returns the value of thetorecord component.org.bson.conversions.BsontoBson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RangeFilter
Creates an instance of aRangeFilterrecord class.- Parameters:
field- the value for thefieldrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord component
-
-
Method Details
-
toBson
public org.bson.conversions.Bson toBson() -
toPredicate
- Specified by:
toPredicatein interfaceFilter
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
field
Returns the value of thefieldrecord component. -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-