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 Main.java

class Employee implements Comparable<Employee> {
    public Employee(String n, double s) {
        name = n;
        salary = s;
    }

From source file javaapplication1.Employee.java

/**
 *
 * @author tpronschinske
 */
public class Employee implements Comparable {
    private int empID;

From source file org.sipfoundry.sipxconfig.site.cdr.decorators.CdrCallLongDistanceDecorator.java

public class CdrCallLongDistanceDecorator extends CdrDecorator implements Comparable<CdrCallLongDistanceDecorator> {
    public CdrCallLongDistanceDecorator(Cdr cdr, Locale locale, Messages messages) {
        super(cdr, locale, messages);
    }

    public int compareTo(CdrCallLongDistanceDecorator obj) {

From source file edu.cornell.mannlib.vitro.webapp.beans.Ontology.java

/**
 * A representation of an OWL ontology resource
 * [kwg8-08/01/07] unified get*, set* methods with style in VClass.java
 */
public class Ontology implements Comparable<Ontology> {

From source file Main.java

class Person implements Comparable<Person> {
    public final String name;
    public final int id;
    public final Date birthdate;

    public Person(int id, String name, Date birthdate) {

From source file com.bigml.histogram.Bin.java

public class Bin<T extends Target> implements Comparable<Bin> {

    public Bin(double mean, double count, T target) {
        /* Hack to avoid Java's negative zero */
        if (mean == 0d) {
            _mean = 0d;

From source file zw.ac.solusiuniversity.model.Major.java

/**
 *
 * @author given
 */
@Document
public class Major implements Serializable, Comparable<Major> {

From source file MainClass.java

class MyType implements Comparable {
    private int i;

    public MyType(int n) {
        i = n;
    }

From source file Main.java

class Item implements Comparable<Item> {
    private Integer value;
    private String name;

    Item(String name, int val) {
        this.name = name;

From source file de.ailis.xadrian.data.Product.java

/**
 * A product
 *
 * @author Klaus Reimer (k@ailis.de)
 */
public class Product implements Serializable, Comparable<Product> {