public class CategoryImpl<K extends Comparable<K>,T extends BaseObject<K>> extends BaseObjectImpl<K> implements Category<K,T>
| Constructor and Description |
|---|
CategoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
belong(Category<K,T> category)
要么自己包含,要要父亲的长辈包含
|
boolean |
belongDirectly(Category<K,T> category) |
boolean |
containsDirectly(Category<K,T> category) |
boolean |
containsSub(Category<K,T> category)
递归查找,要么自己包含,要么子孙包含
|
T |
getParent() |
K |
getParentId()
父节点标识
|
List<Category<K,T>> |
getSubList() |
List<Category<K,T>> |
getSubList(Comparator<BaseObject<K>> comparator) |
String |
getType() |
void |
setParent(T parent) |
void |
setParentId(K parentId) |
void |
setSubList(List<Category<K,T>> subList) |
getDescription, getId, getName, getOrder, getTitle, setDescription, setId, setName, setOrder, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getId, getName, getOrder, getTitle, setDescription, setId, setName, setOrder, setTitlepublic String getType()
public T getParent()
getParent in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public void setParent(T parent)
setParent in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public List<Category<K,T>> getSubList()
getSubList in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public void setSubList(List<Category<K,T>> subList)
setSubList in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public List<Category<K,T>> getSubList(Comparator<BaseObject<K>> comparator)
getSubList in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public boolean containsSub(Category<K,T> category)
containsSub in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public boolean belong(Category<K,T> category)
belong in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public boolean containsDirectly(Category<K,T> category)
containsDirectly in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public boolean belongDirectly(Category<K,T> category)
belongDirectly in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public K getParentId()
CategorygetParentId in interface Category<K extends Comparable<K>,T extends BaseObject<K>>public void setParentId(K parentId)
setParentId in interface Category<K extends Comparable<K>,T extends BaseObject<K>>Copyright © 2006–2018 TinyGroup. All rights reserved.