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