| java.lang.Object com.ibm.icu.dev.test.util.XEquivalenceClass
XEquivalenceClass | public class XEquivalenceClass (Code) | | |
Inner Class :public interface Filter | |
Constructor Summary | |
public | XEquivalenceClass(Object defaultReason) Create class with comparator, and default reason. |
XEquivalenceClass | public XEquivalenceClass(Object defaultReason)(Code) | | Create class with comparator, and default reason.
|
getEquivalenceSets | public Set getEquivalenceSets()(Code) | | |
getEquivalences | public Set getEquivalences(Object a)(Code) | | Returns an unmodifiable set of all the equivalent objects
|
getExplicitItems | public Set getExplicitItems()(Code) | | Returns a set of all the explicit items in the equivalence set. (Any non-explicit items only
have themselves as equivalences.)
|
getReasons | public List getReasons(Object a, Object b)(Code) | | Returns a list of lists. Each sublist is in the form [reasons, obj, reasons, obj,..., reasons]
where each reasons is a set of reasons to go from one obj to the next.
Returns null if there is no connection.
|
getSample | public Object getSample(Object a)(Code) | | Gets a sample object in the equivalence set for a.
|
getSamples | public Set getSamples()(Code) | | gets the set of all the samples, one from each equivalence class.
|
isEquivalent | public boolean isEquivalent(Object a, Object b)(Code) | | returns true iff a is equivalent to b (or a.equals b)
|
|
|