CharPredicate .java

net.minecraft.CharPredicate (interface, 23 lines): interface declaring 4 methods. members: negate, test. ann: @FunctionalInterface.

net.minecraftinterface23 linescommon508 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Full Source

CharPredicate.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft;
2
3
import java.util.Objects;
4
5
@FunctionalInterface
6
public interface CharPredicate {
7
	boolean test(char value);
8
9
	default CharPredicate and(final CharPredicate other) {
10
		Objects.requireNonNull(other);
11
		return value -> this.test(value) && other.test(value);
12
	}
13
14
	default CharPredicate negate() {
15
		return value -> !this.test(value);
16
	}
17
18
	default CharPredicate or(final CharPredicate other) {
19
		Objects.requireNonNull(other);
20
		return value -> this.test(value) || other.test(value);
21
	}
22
}
23

Decompiled Minecraft 26.3 source of CharPredicate (net/minecraft/CharPredicate.java) with Mojang official mappings, stored verbatim on the site.