package ru.simsonic.rscPermissions.API; import java.sql.Timestamp; public class RowEntity implements Cloneable, Comparable { public int id; public String entity; public EntityType entityType; public String prefix; public String suffix; public Timestamp lifetime; public transient String splittedId; public transient PlayerType playerType; public transient RowPermission[] permissions; public transient RowInheritance[] inheritance; @Override public RowEntity clone() throws CloneNotSupportedException { return (RowEntity)super.clone(); } @Override public int compareTo(RowEntity other) { final int deltaId = id - other.id; return deltaId != 0 ? deltaId : entity.compareTo(other.entity); } }