Class QueryOptionsImpl

java.lang.Object
me.lucko.luckperms.common.query.QueryOptionsImpl
All Implemented Interfaces:
net.luckperms.api.query.QueryOptions

public class QueryOptionsImpl extends Object implements net.luckperms.api.query.QueryOptions
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.luckperms.api.query.QueryOptions

    net.luckperms.api.query.QueryOptions.Builder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.luckperms.api.query.QueryOptions
     
    static final net.luckperms.api.query.QueryOptions
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull net.luckperms.api.context.ImmutableContextSet
     
    boolean
     
    boolean
    flag(@NonNull net.luckperms.api.query.Flag flag)
     
    @NonNull Set<net.luckperms.api.query.Flag>
     
    int
     
    @NonNull net.luckperms.api.query.QueryMode
     
    <O> @NonNull Optional<O>
    option(@NonNull net.luckperms.api.query.OptionKey<O> key)
     
    @NonNull Map<net.luckperms.api.query.OptionKey<?>, Object>
     
    boolean
    satisfies(@NonNull net.luckperms.api.context.ContextSet contextSet, @NonNull net.luckperms.api.context.ContextSatisfyMode defaultContextSatisfyMode)
     
    @NonNull net.luckperms.api.query.QueryOptions.Builder
     
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.luckperms.api.query.QueryOptions

    satisfies
  • Field Details

    • DEFAULT_CONTEXTUAL

      public static final net.luckperms.api.query.QueryOptions DEFAULT_CONTEXTUAL
    • DEFAULT_NON_CONTEXTUAL

      public static final net.luckperms.api.query.QueryOptions DEFAULT_NON_CONTEXTUAL
  • Method Details

    • mode

      public @NonNull net.luckperms.api.query.QueryMode mode()
      Specified by:
      mode in interface net.luckperms.api.query.QueryOptions
    • context

      public @NonNull net.luckperms.api.context.ImmutableContextSet context()
      Specified by:
      context in interface net.luckperms.api.query.QueryOptions
    • flag

      public boolean flag(@NonNull net.luckperms.api.query.Flag flag)
      Specified by:
      flag in interface net.luckperms.api.query.QueryOptions
    • flags

      public @NonNull Set<net.luckperms.api.query.Flag> flags()
      Specified by:
      flags in interface net.luckperms.api.query.QueryOptions
    • option

      public <O> @NonNull Optional<O> option(@NonNull net.luckperms.api.query.OptionKey<O> key)
      Specified by:
      option in interface net.luckperms.api.query.QueryOptions
    • options

      public @NonNull Map<net.luckperms.api.query.OptionKey<?>, Object> options()
      Specified by:
      options in interface net.luckperms.api.query.QueryOptions
    • satisfies

      public boolean satisfies(@NonNull net.luckperms.api.context.ContextSet contextSet, @NonNull net.luckperms.api.context.ContextSatisfyMode defaultContextSatisfyMode)
      Specified by:
      satisfies in interface net.luckperms.api.query.QueryOptions
    • toBuilder

      public @NonNull net.luckperms.api.query.QueryOptions.Builder toBuilder()
      Specified by:
      toBuilder in interface net.luckperms.api.query.QueryOptions
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object