public TTreeMap(TMap<? extends K, ? extends V> m) { this((TComparator<? super K>) null); @SuppressWarnings("unchecked") Entry<K, V>[] entries = (Entry<K, V>[]) new Entry<?, ?>[m.size()]; entries = m.entrySet().toArray(entries); TArrays.sort(entries, (o1, o2) -> comparator.compare(o1.getKey(), o2.getKey())); fillMap(entries); }
public String getTypeStr() { return TYPE.get(type, 0); }
public void setType(String type) { type = type.toLowerCase(); this.type = TYPE.getLC(type); }
static { TYPE.add("Found it"); TYPE.add("Didn't find it"); TYPE.add("Write note", "Note"); TYPE.add("Needs Maintenance"); TYPE.add("Needs Archived"); TYPE.add("Will Attend"); TYPE.add("Attended"); TYPE.add("Announcement"); TYPE.add("Webcam Photo Taken"); TYPE.add("Temporarily Disable Listing"); TYPE.add("Enable Listing"); TYPE.add("Owner Maintenance"); TYPE.add("Update Coordinates"); TYPE.add("Post Reviewer Note"); TYPE.add("Publish Listing"); TYPE.add("Archive"); TYPE.add("Unarchive"); }