Constructor and Description |
---|
FixedCondition(boolean accept)
Initializes with the value that will always be returned when calling
accept(Object) . |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(T obj)
Check if the object is accepted or not.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
public FixedCondition(boolean accept)
accept(Object)
.accept
- true to always accept, false to always rejectCopyright © 2021. All rights reserved.