# Class LLKeyExpression

java.lang.Object
com.io7m.looseleaf.security.LLKeyExpression

public final class LLKeyExpression extends Object
A key expression that defines a set of keys.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static LLKeyExpression`
  `create(String expression)`
  Create a key expression.
  `boolean`
  `equals(Object o)`
  `int`
  `hashCode()`
  `boolean`
  `matches(LLKeyName keyName)`
  Determine if this expression includes the given key.
  `String`
  `toString()`
  `String`
  `value()`

  ### Methods inherited from class java.lang.Object

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

- ## Method Details

  - ### create

    public static LLKeyExpression create(String expression)
    Create a key expression.
    Parameters:
      `expression` - The expression
    Returns:
      A key expression

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### value

    public String value()
    Returns:
      The raw expression as a string

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### matches

    public boolean matches(LLKeyName keyName)
    Determine if this expression includes the given key.
    Parameters:
      `keyName` - The key name
    Returns:
      `true` if this expression includes the given key