# Class AccessRule

java.lang.Object
org.gradle.plugins.ide.eclipse.model.AccessRule

public class AccessRule extends Object
Access rule associated to a classpath entry.

Since:
  1.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AccessRule(String kind, String pattern)`
  Creates a new `AccessRule`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object o)`
  `String`
  `getKind()`
  Returns the kind.
  `String`
  `getPattern()`
  Returns the pattern.
  `int`
  `hashCode()`
  `void`
  `setKind(String kind)`
  Sets the kind.
  `void`
  `setPattern(String pattern)`
  Sets the pattern.
  `String`
  `toString()`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### AccessRule

    public AccessRule(String kind, String pattern)
    Creates a new `AccessRule`.
    Since:
      2.14

- ## Method Details

  - ### getKind

    public String getKind()
    Returns the kind.
    Since:
      1.0

  - ### setKind

    public void setKind(String kind)
    Sets the kind.
    Since:
      1.0

  - ### getPattern

    public String getPattern()
    Returns the pattern.
    Since:
      1.0

  - ### setPattern

    public void setPattern(String pattern)
    Sets the pattern.
    Since:
      1.0

  - ### equals

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

  - ### hashCode

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

  - ### toString

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