Record Class MethodHandleLogFilter
java.lang.Object
java.lang.Record
dev.pfaff.log4truth.MethodHandleLogFilter
- All Implemented Interfaces:
LogFilter
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aMethodHandleLogFilterrecord 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.final inthashCode()Returns a hash code value for this object.test()Returns the value of thetestrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodHandleLogFilter
Creates an instance of aMethodHandleLogFilterrecord class.- Parameters:
test- the value for thetestrecord component
-
-
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). -
test
Returns the value of thetestrecord component.- Returns:
- the value of the
testrecord component
-