org.databene.regex
Class Quantifier

java.lang.Object
  extended by org.databene.regex.Quantifier

public class Quantifier
extends java.lang.Object

Represents a quantifier of a regular expression, e.g. '{1,3}'.


Constructor Summary
Quantifier(int min, java.lang.Integer max)
          Complete constructor that takes values for all attributes
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Integer getMax()
          returns the maximum value
 int getMin()
          returns the minimum value
 int hashCode()
           
 java.lang.String toString()
          Creates a String of regular expression format, e.g. '{2,}', '{1,3}', '+', '?'
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quantifier

public Quantifier(int min,
                  java.lang.Integer max)
Complete constructor that takes values for all attributes

Method Detail

getMin

public int getMin()
returns the minimum value


getMax

public java.lang.Integer getMax()
returns the maximum value


toString

public java.lang.String toString()
Creates a String of regular expression format, e.g. '{2,}', '{1,3}', '+', '?'

Overrides:
toString in class java.lang.Object
See Also:
Object.equals(Object)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.equals(Object)


Copyright © 2010. All Rights Reserved.