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

class ComparablePerson implements Comparable<ComparablePerson> {
    private int id;
    private String name;

    public ComparablePerson(int id, String name) {
        this.id = id;

From source file Employee.java

class Employee implements Comparable {
    private String name;

    private double salary;

    Employee(String name, double salary) {

From source file Person.java

class Person implements Comparable {
    private String firstName;

    private String lastName;

    private int age;

From source file Person.java

class Person implements Comparable {
    private String firstName;

    private String lastName;

    private int age;

From source file com.enonic.cms.core.CaseInsensitiveString.java

/**
 * A class that should work exactely like String, except that when comparing to another String, the case is ignored on the equals method.
 * This is important because frameworks like Hibernate can use this instead of <code>java.lang.String</code>, as keys or other base values
 * where the comparator operation needs to be case insensitve.
 * <p/>
 * Not all methods of String are implemented yet.  If any other methods are needed, just implement them by calling the same method on the

From source file com.enonic.cms.domain.CaseInsensitiveString.java

/**
 * A class that should work exactely like String, except that when comparing to another String, the case is ignored on the equals method.
 * This is important because frameworks like Hibernate can use this instead of <code>java.lang.String</code>, as keys or other base values
 * where the comparator operation needs to be case insensitve.
 * <p/>
 * Not all methods of String are implemented yet.  If any other methods are needed, just implement them by calling the same method on the

From source file net.bible.service.db.bookmark.LabelDto.java

/**
 * @author Martin Denham [mjdenham at gmail dot com]
 * @see gnu.lgpl.License for license details.<br>
 *      The copyright to this program is held by it's author.
 */
public class LabelDto implements Comparable<LabelDto> {

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

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

    public Gap(Bin<T> startBin, Bin<T> endBin, double weight) {
        _startBin = startBin;
        _endBin = endBin;
        _weight = weight;

From source file com.sinnerschrader.s2b.accounttool.logic.component.licences.Dependency.java

/**
 * Created by vikgru on 19/01/2017.
 */
public class Dependency implements Comparable<Dependency> {

    private final String groupId;

From source file org.streaminer.stream.histogram.spdt.Gap.java

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

    public Gap(Bin<T> startBin, Bin<T> endBin, double weight) {
        _startBin = startBin;
        _endBin = endBin;
        _weight = weight;