Package com._1c.g5.v8.dt.form.service
Class CommandComparer
- java.lang.Object
-
- com._1c.g5.v8.dt.form.service.CommandComparer
-
- All Implemented Interfaces:
DtObjectMap.IComparer<Command>
public class CommandComparer extends Object implements DtObjectMap.IComparer<Command>
Comparator for compare a Command.
-
-
Field Summary
Fields Modifier and Type Field Description static CommandComparerINSTANCEInstance of Command comparer
-
Constructor Summary
Constructors Constructor Description CommandComparer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Command a, Command b)Compares two object for equalityinthashCode(Command element)Returns the hash code for the given objects.
-
-
-
Field Detail
-
INSTANCE
public static final CommandComparer INSTANCE
Instance of Command comparer
-
-
Method Detail
-
equals
public boolean equals(Command a, Command b)
Description copied from interface:DtObjectMap.IComparerCompares two object for equality- Specified by:
equalsin interfaceDtObjectMap.IComparer<Command>- Parameters:
a- the first elementb- the second element- Returns:
- whether a is equal to b
-
hashCode
public int hashCode(Command element)
Description copied from interface:DtObjectMap.IComparerReturns the hash code for the given objects.- Specified by:
hashCodein interfaceDtObjectMap.IComparer<Command>- Parameters:
element- the element the hash code is calculated for- Returns:
- the hash code for the given object
-
-