CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.persistence.dto.base
Class IdentifiableDto.IdComparator

java.lang.Object
  extended by com.intland.codebeamer.persistence.dto.base.IdentifiableDto.IdComparator
All Implemented Interfaces:
java.util.Comparator<IdentifiableDto>
Enclosing class:
IdentifiableDto

public static class IdentifiableDto.IdComparator
extends java.lang.Object
implements java.util.Comparator<IdentifiableDto>

A special Comparator implementation to compare two IdentifiableDtos by id


Constructor Summary
IdentifiableDto.IdComparator()
          Create a default/ascending IdComparator
IdentifiableDto.IdComparator(boolean descending)
          Create an IdComparator with the specified sort direction
 
Method Summary
 int compare(IdentifiableDto o1, IdentifiableDto o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

IdentifiableDto.IdComparator

public IdentifiableDto.IdComparator()
Create a default/ascending IdComparator


IdentifiableDto.IdComparator

public IdentifiableDto.IdComparator(boolean descending)
Create an IdComparator with the specified sort direction

Method Detail

compare

public int compare(IdentifiableDto o1,
                   IdentifiableDto o2)
Specified by:
compare in interface java.util.Comparator<IdentifiableDto>

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.