Mercurial > hg > Members > kazuma > jungle-ormapper
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/data/treemap/DefaultComparator.java @ 0:44465893e8b8
first Commit
author | Kazuma |
---|---|
date | Wed, 30 Nov 2016 01:47:55 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:44465893e8b8 |
---|---|
1 package jp.ac.u_ryukyu.ie.cr.jungle.data.treemap; | |
2 | |
3 import java.util.Comparator; | |
4 | |
5 public class DefaultComparator<K> implements Comparator<K>{ | |
6 @Override | |
7 @SuppressWarnings("unchecked") | |
8 public int compare(K key, K compareKey) { | |
9 return ((Comparable<? super K>)key).compareTo(compareKey); | |
10 } | |
11 } |