edu.wisc.my.portlets.bookmarks.domain
Class Folder
java.lang.Object
edu.wisc.my.portlets.bookmarks.domain.Entry
edu.wisc.my.portlets.bookmarks.domain.Folder
- All Implemented Interfaces:
- CollapsibleEntry, Serializable
- Direct Known Subclasses:
- BookmarkSet
public class Folder
- extends Entry
- implements CollapsibleEntry
A Folder can contain other entries in a List. This is a basic bean and no defensive copying
is done. Changes made to List returned by getChildren() will be reflected to other
code using these APIs.
- Version:
- $Revision: 12155 $
- Author:
- Eric Dalquist eric.dalquist@doit.wisc.edu
- See Also:
- Serialized Form
| Methods inherited from class edu.wisc.my.portlets.bookmarks.domain.Entry |
getCreated, getId, getModified, getName, getNote, getNoteLines, setCreated, setId, setModified, setName, setNote |
Folder
public Folder()
getChildren
public Map<Long,Entry> getChildren()
- Returns:
- Returns the children, will never return null.
setChildren
public void setChildren(Map<Long,Entry> children)
- Parameters:
children - The children to set.
isMinimized
public boolean isMinimized()
- Specified by:
isMinimized in interface CollapsibleEntry
- Returns:
- Returns the minimized.
setMinimized
public void setMinimized(boolean minimized)
- Specified by:
setMinimized in interface CollapsibleEntry
- Parameters:
minimized - The minimized to set.
getSortedChildren
public List<Entry> getSortedChildren()
- Returns an immutable sorted view of the values of the children Map. The sorting is done
using the current childComparator. Warning, this is has a time cost of 2n log(n)
on every call.
- Returns:
- An immutable sorted view of the folder's children.
getChildComparator
public Comparator<Entry> getChildComparator()
- Returns:
- Returns the childComparator.
setChildComparator
public void setChildComparator(Comparator<Entry> childComparator)
- Parameters:
childComparator - The childComparator to set, calls setChildComparator on all children of type Folder.
equals
public boolean equals(Object object)
- Overrides:
equals in class Entry
- See Also:
Object.equals(Object)
hashCode
public int hashCode()
- Overrides:
hashCode in class Entry
- See Also:
Object.hashCode()
toString
public String toString()
- Overrides:
toString in class Entry
- See Also:
Object.toString()
Copyright © 2010 Jasig. All Rights Reserved.