Class JWildcardRules

java.lang.Object
com.yevdo.jwildcard.JWildcardRules

public class JWildcardRules
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    JWildcardRules()
    JWildcardRules represents a set of rules to use while converting wildcard to regex string
    JWildcardRules​(java.util.Set<JWildcardRule> rules)
    JWildcardRules represents a set of rules to use while converting wildcard to regex string
  • Method Summary

    Modifier and Type Method Description
    boolean addRule​(JWildcardRule rule)
    Add a rule to the existing rules
    boolean addRules​(java.util.Collection<JWildcardRule> rules)
    Add a set of rules to the existing rules
    java.util.Set<JWildcardRule> getRules()  
    boolean removeRule​(JWildcardRule rule)
    Removes the specified element from this set if it is present

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JWildcardRules

      public JWildcardRules()
      JWildcardRules represents a set of rules to use while converting wildcard to regex string
    • JWildcardRules

      public JWildcardRules​(java.util.Set<JWildcardRule> rules)
      JWildcardRules represents a set of rules to use while converting wildcard to regex string
      Parameters:
      rules - a collection of JWildcardRule
  • Method Details

    • addRule

      public boolean addRule​(JWildcardRule rule)
      Add a rule to the existing rules
      Parameters:
      rule - JWildcardRule
      Returns:
      true if the rules set did not already contain the specified element
    • addRules

      public boolean addRules​(java.util.Collection<JWildcardRule> rules)
      Add a set of rules to the existing rules
      Parameters:
      rules - a collection of JWildcardRule
      Returns:
      true if the rules set did not already contain the specified elements
    • removeRule

      public boolean removeRule​(JWildcardRule rule)
      Removes the specified element from this set if it is present
      Parameters:
      rule - JWildcardRule
      Returns:
      true if this set contained the specified element
    • getRules

      public java.util.Set<JWildcardRule> getRules()