com.togethersoft.openapi.util.enum
Class OrderedDiffEnumeration
- public class OrderedDiffEnumeration
- implements Enumeration
Represents enumeration constructed from two others. This enumeration contains all elements from original
except which equals to elements from secondary enumeration. Comparision is produced by specified Comparator by
the order.
- Author:
- TogetherSoft
| Constructor Summary |
OrderedDiffEnumeration(Enumeration orig, Enumeration sub, Comparator comparator) Initialize new OrderedDiffEnumeration. |
| Method Summary |
boolean | hasMoreElements() Checks is there more elements in enumeration. |
Object | nextElement() Returns next differed element from this enumeratio. |
OrderedDiffEnumeration
public OrderedDiffEnumeration(Enumeration orig, Enumeration sub, Comparator comparator)
- Initialize new OrderedDiffEnumeration.
- Parameters:
- orig - Original enumeration
- sub - Secondary enumeration
- comparator - Object of class which implements java.util.Comparator interface
hasMoreElements
public boolean hasMoreElements()
- Checks is there more elements in enumeration.
nextElement
public Object nextElement()
- Returns next differed element from this enumeratio.
to Class java.util.Comparator