com.extjs.gxt.ui.client.data
Class DefaultModelComparer<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.DefaultModelComparer<M>
Type Parameters:
M - the model type
All Implemented Interfaces:
ModelComparer<M>

public class DefaultModelComparer<M extends ModelData>
extends java.lang.Object
implements ModelComparer<M>

Default ModelComparer


Field Summary
static DefaultModelComparer DFFAULT
          Global instance.
 
Constructor Summary
DefaultModelComparer()
           
 
Method Summary
 boolean equals(M a, M b)
          Returns true if and model instances represent the same entity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DFFAULT

public static final DefaultModelComparer DFFAULT
Global instance.

Constructor Detail

DefaultModelComparer

public DefaultModelComparer()
Method Detail

equals

public boolean equals(M a,
                      M b)
Description copied from interface: ModelComparer
Returns true if and model instances represent the same entity.

Specified by:
equals in interface ModelComparer<M extends ModelData>
Parameters:
a - model one
b - model two
Returns:
true if the models are equal