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 MyObject implements Comparable<MyObject> {
    private String name;
    private Integer level;

    public MyObject(String name, Integer level) {
        this.name = name;

From source file org.duracloud.duradmin.spaces.controller.ContentItemUploadTask.java

/**
 * @author Daniel Bernstein
 */
public class ContentItemUploadTask implements Comparable, ProgressListener {
    Logger log = LoggerFactory.getLogger(ContentItemUploadTask.class);

From source file com.cognifide.aet.job.api.collector.JsErrorLog.java

/**
 * @author lukasz.wieczorek
 */
public class JsErrorLog implements Serializable, Comparable<JsErrorLog> {

    private static final long serialVersionUID = -8929508257448156720L;

From source file gov.nih.nci.caintegrator.web.action.study.management.DisplayableAnnotationFieldDescriptor.java

/**
 *
 */
public class DisplayableAnnotationFieldDescriptor implements Comparable<DisplayableAnnotationFieldDescriptor> {

    private AnnotationFieldDescriptor fieldDescriptor;

From source file org.drools.planner.examples.examination.domain.RoomHardConstraint.java

/**
 * @author Geoffrey De Smet
 */
@XStreamAlias("RoomHardConstraint")
public class RoomHardConstraint extends AbstractPersistable implements Comparable<RoomHardConstraint> {

From source file org.optaplanner.mes.common.domain.AbstractPersistable.java

@SuppressWarnings("serial")
public abstract class AbstractPersistable implements Serializable, Comparable<AbstractPersistable> {

    protected Long id;

    protected AbstractPersistable() {

From source file com.employee.scheduler.common.domain.AbstractPersistable.java

public abstract class AbstractPersistable implements Serializable, Comparable<AbstractPersistable> {

    protected Long id;

    protected AbstractPersistable() {
    }

From source file net.sf.sze.model.zeugnis.AvSvBewertung.java

/**
 * Bewertung zum Arbeits- und Sozialverhalten.
 *
 */
@Entity
@Table(name = "av_sv_bewertung")

From source file com.codecrate.shard.kit.DefaultClassLevel.java

/**
 * Definition of a class level.
 * ex: Ranger level 1 grants +1 to hit ....
 *
 * @author <a href="mailto:wireframe@dev.java.net">Ryan Sonnek</a>
 */

From source file org.schedoscope.metascope.index.model.SolrQueryResultEntity.java

public class SolrQueryResultEntity implements Comparable<SolrQueryResultEntity> {

    private Object resultEntity;
    private Map<String, List<String>> highlightings;

    public SolrQueryResultEntity(Object resultEntity, Map<String, List<String>> map) {