com.raritantechnologies.utils.comparators
Class IntegerLessThanEqualsComparator

java.lang.Object
  extended bycom.raritantechnologies.utils.comparators.IntegerEqualsComparator
      extended bycom.raritantechnologies.utils.comparators.IntegerLessThanEqualsComparator
All Implemented Interfaces:
java.util.Comparator, IComparator, IConfigurable

public class IntegerLessThanEqualsComparator
extends IntegerEqualsComparator

Configurable java.util.Comparator that performs a integer less than or equal to comparison.

XML Configuration Template:
   <Comparator class="com.raritantechnologies.utils.comparators.IntegerLessThanEqualsComparator" 
                  value="50" />
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.utils.comparators.IntegerEqualsComparator
limit
 
Fields inherited from interface com.raritantechnologies.utils.comparators.IComparator
TEMPLATE
 
Constructor Summary
IntegerLessThanEqualsComparator()
           
IntegerLessThanEqualsComparator(java.lang.Integer integer)
           
IntegerLessThanEqualsComparator(java.lang.String integerStr)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getConfigurationXML()
           
 java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
           
 void getConfigurationXML(java.io.Writer writer)
           
 
Methods inherited from class com.raritantechnologies.utils.comparators.IntegerEqualsComparator
compare, convertToInt, getValue, initialize, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerLessThanEqualsComparator

public IntegerLessThanEqualsComparator()

IntegerLessThanEqualsComparator

public IntegerLessThanEqualsComparator(java.lang.String integerStr)

IntegerLessThanEqualsComparator

public IntegerLessThanEqualsComparator(java.lang.Integer integer)
Method Detail

equals

public boolean equals(java.lang.Object object)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class IntegerEqualsComparator

getConfigurationXML

public void getConfigurationXML(java.io.Writer writer)
                         throws java.io.IOException
Overrides:
getConfigurationXML in class IntegerEqualsComparator
Throws:
java.io.IOException

getConfigurationXML

public java.lang.String getConfigurationXML()
Overrides:
getConfigurationXML in class IntegerEqualsComparator

getConfigurationXML

public java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
Overrides:
getConfigurationXML in class IntegerEqualsComparator