Improve performance of resolve methods in PermissionHolder, other cleanup
This commit is contained in:
@@ -311,7 +311,7 @@ public class LuckPermsService implements PermissionService {
|
||||
@RequiredArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
@ToString
|
||||
public static class DescriptionBuilder implements PermissionDescription.Builder {
|
||||
public static final class DescriptionBuilder implements PermissionDescription.Builder {
|
||||
private final LuckPermsService service;
|
||||
private final PluginContainer container;
|
||||
private final Map<String, Tristate> roles = new HashMap<>();
|
||||
@@ -365,7 +365,7 @@ public class LuckPermsService implements PermissionService {
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
@ToString
|
||||
public static class Description implements PermissionDescription {
|
||||
public static final class Description implements PermissionDescription {
|
||||
private final LuckPermsService service;
|
||||
private final PluginContainer owner;
|
||||
private final String id;
|
||||
|
||||
@@ -33,7 +33,7 @@ import me.lucko.luckperms.api.context.ImmutableContextSet;
|
||||
@ToString
|
||||
@EqualsAndHashCode
|
||||
@AllArgsConstructor(staticName = "of")
|
||||
public class OptionLookup {
|
||||
public final class OptionLookup {
|
||||
|
||||
private final String key;
|
||||
private final ImmutableContextSet contexts;
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ import me.lucko.luckperms.api.context.ImmutableContextSet;
|
||||
@ToString
|
||||
@EqualsAndHashCode
|
||||
@AllArgsConstructor(staticName = "of")
|
||||
public class PermissionLookup {
|
||||
public final class PermissionLookup {
|
||||
|
||||
private final String node;
|
||||
private final ImmutableContextSet contexts;
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ import java.lang.ref.WeakReference;
|
||||
@ToString(of = "collection")
|
||||
@EqualsAndHashCode(of = "collection")
|
||||
@RequiredArgsConstructor(staticName = "of")
|
||||
public class SubjectCollectionReference {
|
||||
public final class SubjectCollectionReference {
|
||||
|
||||
@Getter
|
||||
private final String collection;
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ import java.util.List;
|
||||
@ToString(of = {"collection", "identifier"})
|
||||
@EqualsAndHashCode(of = {"collection", "identifier"})
|
||||
@RequiredArgsConstructor(staticName = "of")
|
||||
public class SubjectReference {
|
||||
public final class SubjectReference {
|
||||
public static SubjectReference deserialize(String s) {
|
||||
List<String> parts = Splitter.on('/').limit(2).splitToList(s);
|
||||
return of(parts.get(0), parts.get(1));
|
||||
|
||||
Reference in New Issue
Block a user