io.ayte.utility.predicate.kit.unary.value.EqualToInAnyCase Maven / Gradle / Ivy
package io.ayte.utility.predicate.kit.unary.value;
import io.ayte.utility.predicate.kit.unary.AugmentedUnaryPredicate;
import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.ToString;
@EqualsAndHashCode
@ToString(includeFieldNames = false)
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public class EqualToInAnyCase implements AugmentedUnaryPredicate {
private final String reference;
@Override
public boolean test(String subject) {
return reference.equalsIgnoreCase(subject);
}
public static EqualToInAnyCase create(@NonNull String reference) {
return new EqualToInAnyCase(reference);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy