Class Context

java.lang.Object
com.griefdefender.api.permission.Context
All Implemented Interfaces:
Map.Entry<String,String>

public final class Context extends Object implements Map.Entry<String,String>
The context that a given service check occurs in.

Instances of a context are designed to function as cache keys, meaning they should be fairly lightweight and not hold references to large objects.

Contexts consist of a "type" (or key) and a "name" (or value).

  • Constructor Details

    • Context

      public Context(String type, String name)
      Create a new context instance.
      Parameters:
      type - Context type. Must not be null.
      name - Context name. Must not be null.
  • Method Details