org.openmobileis.common.util.collection
Interface Orderable
- All Known Subinterfaces:
- Label
- All Known Implementing Classes:
- DefaultLabel
- public interface Orderable
Title: OpenMobileIS project source
Description: Interface that all elements to be sort must implements.
- Since:
- JDK 1.1
- Version:
- 1.0.
- Author:
- Philippe Delrieu
Method Summary |
int |
compareTo(java.lang.Object p1,
java.lang.Object p2)
Compare two objects and order them. |
compareTo
public int compareTo(java.lang.Object p1,
java.lang.Object p2)
- Compare two objects and order them.
- Parameters:
p1
- first objectp2
- second object
- Returns:
- < 0 if p1 < p2, 0 if equal, > 0 if p1 > p2
Copyright 2005 e-Care. All Rights Reserved.