Code example for TreeSet

Methods: last

0
			log.remove(log.first());
		} 
	} 
 
	public ProvenanceLogEntry getLatest() { 
		return log.last();
	} 
 
	public Iterator<ProvenanceLogEntry> getAllLatestFirst() {
		return log.descendingIterator();
	} 
 
	@Override 
	public ProvenanceLogEntry getLastDefined() { 
		Iterator<ProvenanceLogEntry> descendingIterator = log
				.descendingIterator(); 
		while (descendingIterator.hasNext()) {
			ProvenanceLogEntry entry = descendingIterator.next();
			if (entry.getProperty().isDefined()) {
				return entry;
			}