19 package org.turro.security;
21 import java.util.Objects;
22 import org.turro.util.CompareUtil;
28 public class SecItem implements Comparable<SecItem> {
30 private final String secName;
31 private final long usage;
32 private boolean selected;
33 private boolean sibling;
35 public SecItem(String secName,
long usage) {
36 this.secName = secName;
38 this.selected =
false;
51 return CompareUtil.compare(secName, o.secName);
59 this.selected = selected;
67 this.sibling = sibling;
78 hash = 59 * hash + Objects.hashCode(this.secName);
90 if (getClass() != obj.getClass()) {
94 if (!Objects.equals(
this.secName, other.secName)) {
void setSibling(boolean sibling)
boolean equals(Object obj)
SecItem(String secName, long usage)
void setSelected(boolean selected)