cn.cheny.toolbox.other.skiplist.SkipEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolbox Show documentation
Show all versions of toolbox Show documentation
A personal java tool package project
package cn.cheny.toolbox.other.skiplist;
import lombok.Data;
/**
* 跳表Map结构entry
*
* @author by chenyi
* @date 2021/7/30
*/
@Data
public class SkipEntry, E> implements Comparable> {
private T key;
private E entry;
public SkipEntry() {
}
public SkipEntry(T key, E entry) {
this.key = key;
this.entry = entry;
}
@Override
public int compareTo(SkipEntry other) {
return key.compareTo(other.key);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy