Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.qoomon.domainvalue.type;

Parameters:
<T> type of the wrapped value
Author(s):
Bengt Brodersen
 
 public abstract class ComparableDV<T extends Comparable<T>>
         extends DV<T>
         implements Comparable<ComparableDV<T>> {
    public ComparableDV(final T value) {
        super(value);
    }
    @Override
    protected boolean isValid(T value) {
        return super.isValid(value);
    }
    @Override
    public int compareTo(ComparableDV<T> obj) {
        return value().compareTo(obj.value());
    }
New to GrepCode? Check out our FAQ X