File size: 606 Bytes
d46f4a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package net.minecraft;

import java.util.Objects;

@FunctionalInterface
public interface CharPredicate {
    boolean test(char p_125855_);

    default CharPredicate and(CharPredicate p_178287_) {
        Objects.requireNonNull(p_178287_);
        return p_178295_ -> this.test(p_178295_) && p_178287_.test(p_178295_);
    }

    default CharPredicate negate() {
        return p_178285_ -> !this.test(p_178285_);
    }

    default CharPredicate or(CharPredicate p_178292_) {
        Objects.requireNonNull(p_178292_);
        return p_178290_ -> this.test(p_178290_) || p_178292_.test(p_178290_);
    }
}