All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.cheny.toolbox.other.skiplist.SkipEntry Maven / Gradle / Ivy

There is a newer version: 2.3.6-jdk8
Show newest version
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