A few minor API javadoc changes
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
package me.lucko.luckperms.common.node;
|
||||
|
||||
import me.lucko.luckperms.api.Node;
|
||||
import me.lucko.luckperms.api.NodeEqualityPredicate;
|
||||
import me.lucko.luckperms.api.StandardNodeEquality;
|
||||
import me.lucko.luckperms.api.Tristate;
|
||||
import me.lucko.luckperms.api.context.ContextSet;
|
||||
@@ -117,8 +118,8 @@ public abstract class ForwardingNode implements Node {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldApplyWithContext(@Nonnull ContextSet context) {
|
||||
return delegate().shouldApplyWithContext(context);
|
||||
public boolean shouldApplyWithContext(@Nonnull ContextSet contextSet) {
|
||||
return delegate().shouldApplyWithContext(contextSet);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -229,6 +230,11 @@ public abstract class ForwardingNode implements Node {
|
||||
return delegate().standardEquals(other, equalityPredicate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Node other, NodeEqualityPredicate equalityPredicate) {
|
||||
return delegate().equals(other, equalityPredicate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Builder toBuilder() {
|
||||
return delegate().toBuilder();
|
||||
|
||||
@@ -316,8 +316,8 @@ public final class ImmutableNode implements Node {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldApplyWithContext(@Nonnull ContextSet context) {
|
||||
return getFullContexts().isSatisfiedBy(context, false);
|
||||
public boolean shouldApplyWithContext(@Nonnull ContextSet contextSet) {
|
||||
return getFullContexts().isSatisfiedBy(contextSet, false);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
@@ -41,7 +41,7 @@ import javax.annotation.Nonnull;
|
||||
*/
|
||||
class NodeBuilder implements Node.Builder {
|
||||
protected String permission;
|
||||
private final ImmutableContextSet.Builder extraContexts = ImmutableContextSet.builder();
|
||||
private ImmutableContextSet.Builder extraContexts = ImmutableContextSet.builder();
|
||||
private Boolean value = true;
|
||||
private boolean override = false;
|
||||
private String server = null;
|
||||
@@ -69,7 +69,7 @@ class NodeBuilder implements Node.Builder {
|
||||
this.server = node.getServer().orElse(null);
|
||||
this.world = node.getWorld().orElse(null);
|
||||
this.expireAt = node.isPermanent() ? 0L : node.getExpiryUnixTime();
|
||||
this.extraContexts.addAll(node.getContexts());
|
||||
this.extraContexts = ImmutableContextSet.builder().addAll(node.getContexts());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user