Code example for SortedMap

Methods: get, lastKey

0
        this.title = title;
    } 
 
    @Override 
    public int getLastContentId() { 
        return contents.get(contents.lastKey());
    } 
 
    @Override 
    public Timestamp getLastContentTimestamp() {
        return contents.lastKey();
    } 
}