Example usage for java.lang Comparable interface-usage

List of usage examples for java.lang Comparable interface-usage

Introduction

In this page you can find the example usage for java.lang Comparable interface-usage.

Usage

From source file org.prot.storage.Key.java

public class Key implements Serializable, Comparable<Key> {
    private static final long serialVersionUID = -1077956197302875365L;

    byte[] key = null;

    public Key() {

From source file com.edmunds.zookeeper.election.ZooKeeperElectionNode.java

/**
 * Represents the known name of a master election node (after the callback from create).
 *
 * @author David Trott
 */
public class ZooKeeperElectionNode implements Comparable<ZooKeeperElectionNode> {

From source file eu.planets_project.tb.gui.backing.exp.MeasurementEventBean.java

/**
 * 
 * @author <a href="mailto:Andrew.Jackson@bl.uk">Andy Jackson</a>
 *
 */
public class MeasurementEventBean implements Comparable<Object> {

From source file com.cloudera.crunch.Pair.java

/**
 * A convenience class for two-element {@link Tuple}s.
 */
public class Pair<K, V> implements Tuple, Comparable<Pair<K, V>> {

    private final K first;

From source file org.assertj.assertions.generator.description.FieldDescription.java

/**
 * Stores the information needed to generate an assertion for a public field.
 * <p>
 * Let's say we have the following method in class <code>Person</code> :
 * 
 * <pre>

From source file org.eclipse.jubula.tools.utils.generator.ToolkitInfo.java

/**
 * @author BREDEX GmbH
 * @created Jul 4, 2007
 */
public class ToolkitInfo extends Info implements Comparable {

From source file UInt64.java

/**
 * Class to represent unsigned 64-bit numbers. Warning: Any functions which take
 * or return a <tt>long</tt> are restricted to the range of a signed 64bit
 * number. Use the BigInteger methods if you wish access to the full range.
 */
@SuppressWarnings("serial")

From source file com.opengamma.util.tuple.Pair.java

/**
 * An immutable pair consisting of two elements.
 * <p>
 * This implementation refers to the elements as 'first' and 'second'.
 * The class also implements the {@code Map.Entry} interface where the key is 'first'
 * and the value is 'second'.

From source file org.commonjava.shelflife.model.ExpirationKey.java

public class ExpirationKey implements Serializable, Comparable<ExpirationKey> {

    private static final long serialVersionUID = 1L;

    private final String[] parts;

From source file com.davidsoergel.trees.ImmutableSortedSetHierarchyNode.java

/**
 * A node in a simple hierarchy, where a value of the given generic type is attached at each node.  The children are
 * stored in a SortedSet and thus maintain their natural order.
 *
 * @author <a href="mailto:dev@davidsoergel.com">David Soergel</a>
 * @version $Id: ImmutableSortedSetHierarchyNode.java 524 2009-10-10 07:55:47Z soergel $