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 CommandComparer
INSTANCE
Instance of Command comparer
-
Constructor Summary
Constructors Constructor Description CommandComparer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Command a, Command b)
Compares two object for equalityint
hashCode(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.IComparer
Compares two object for equality- Specified by:
equals
in 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.IComparer
Returns the hash code for the given objects.- Specified by:
hashCode
in interfaceDtObjectMap.IComparer<Command>
- Parameters:
element
- the element the hash code is calculated for- Returns:
- the hash code for the given object
-
-