public class TModelInstanceDetailsComparator extends Object
Constructor and Description |
---|
TModelInstanceDetailsComparator(String TModelKey,
boolean number,
boolean XMLdate,
boolean XMLduration) |
Modifier and Type | Method and Description |
---|---|
int |
compare(TModelInstanceDetails lhs,
TModelInstanceDetails rhs)
Compares two non-null instances of TModelInstanceDetails by only
comparing the field designated from the constructor.
|
public TModelInstanceDetailsComparator(String TModelKey, boolean number, boolean XMLdate, boolean XMLduration) throws DatatypeConfigurationException, IllegalArgumentException
TModelKey
- for TModelInstanceInfo to use for comparisonnumber
- if true, the InstanceDetails.InstanceParms will be treated
like a numberXMLdate
- if true, the InstanceDetails.InstanceParms will be treated
like a XML DateXMLduration
- if true, the InstanceDetails.InstanceParms will be
treated like a XML Gregorian CalendarDatatypeConfigurationException
IllegalArgumentException
Duration
,
XMLGregorianCalendar
public int compare(TModelInstanceDetails lhs, TModelInstanceDetails rhs) throws IllegalArgumentException, NumberFormatException, NullPointerException, ArrayIndexOutOfBoundsException
lhs
- rhs
- IllegalArgumentException
- if the tModel key to search for is
missing, if either sides are nullArrayIndexOutOfBoundsException
- if the values were found but could
not be comparedNumberFormatException
NullPointerException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.