Package tigase.vhosts.filter

# Class Rule

java.lang.Object
tigase.vhosts.filter.Rule

All Implemented Interfaces:
  `Comparable<Rule>`

public class Rule extends Object implements Comparable<Rule>

Author:
  Wojtek

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `Rule.RuleType`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Rule(int id, boolean allow, Rule.RuleType type, JID value)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(Rule o)`
  `boolean`
  `equals(Object obj)`
  `protected int`
  `getId()`
  `int`
  `hashCode()`
  `boolean`
  `isAllowed()`
  `String`
  `toConfigurationString()`
  `String`
  `toString()`

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

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

- ## Constructor Details

  - ### Rule

    public Rule(int id, boolean allow, Rule.RuleType type, JID value)

- ## Method Details

  - ### compareTo

    public int compareTo(Rule o)
    Specified by:
      `compareTo` in interface `Comparable<Rule>`

  - ### equals

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

  - ### isAllowed

    public boolean isAllowed()

  - ### hashCode

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

  - ### toString

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

  - ### toConfigurationString

    public String toConfigurationString()

  - ### getId

    protected int getId()