mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 10:49:46 +00:00
Mark a number of API methods as NonExtendable
This commit is contained in:
5 files changed
+12
-1
No files matched your search
@@ -39,6 +39,7 @@ import net.luckperms.api.node.types.WeightNode;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
@@ -97,6 +98,7 @@ import java.util.stream.Stream;
|
||||
*
|
||||
* <p>The core node state must be immutable in all implementations.</p>
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface Node {
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,15 +32,19 @@ import net.luckperms.api.node.NodeType;
|
||||
import net.luckperms.api.node.types.MetaNode;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
|
||||
/**
|
||||
* A predicate which matches certain {@link Node}s.
|
||||
*
|
||||
* <p>API users should not implement this interface directly.</p>
|
||||
*
|
||||
* @param <T> the node type matched
|
||||
* @since 5.1
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface NodeMatcher<T extends Node> extends Predicate<Node> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
package net.luckperms.api.node.metadata;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -40,6 +41,7 @@ import java.util.Objects;
|
||||
*
|
||||
* @param <T> the metadata type
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface NodeMetadataKey<T> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -28,6 +28,7 @@ package net.luckperms.api.query;
|
||||
import net.luckperms.api.node.metadata.NodeMetadataKey;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.jetbrains.annotations.ApiStatus.NonExtendable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -41,6 +42,7 @@ import java.util.Objects;
|
||||
*
|
||||
* @param <T> the option type
|
||||
*/
|
||||
@NonExtendable
|
||||
public interface OptionKey<T> {
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user