Record Class OrLogFilter
java.lang.Object
java.lang.Record
dev.pfaff.log4truth.OrLogFilter
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionOrLogFilter(LogFilter first, LogFilter second) Creates an instance of aOrLogFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbind()Returns a bound method handle equivalent to theLogFilter.test(java.lang.String, java.util.List<java.lang.String>, java.lang.Thread)method of this filter.final booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.second()Returns the value of thesecondrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrLogFilter
-
-
Method Details
-
test
-
bind
Description copied from interface:LogFilterReturns a bound method handle equivalent to theLogFilter.test(java.lang.String, java.util.List<java.lang.String>, java.lang.Thread)method of this filter. -
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). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
second
Returns the value of thesecondrecord component.- Returns:
- the value of the
secondrecord component
-