Package cern.nxcals.api.domain
Class Hierarchy
- java.lang.Object
-
- cern.nxcals.api.domain.Hierarchy
-
- All Implemented Interfaces:
HierarchyView,Identifiable
public class Hierarchy extends java.lang.Object implements Identifiable, HierarchyView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHierarchy.Builderstatic classHierarchy.InnerBuilder
-
Field Summary
-
Fields inherited from interface cern.nxcals.api.domain.Identifiable
NOT_SET
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Hierarchy.Builderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.Set<HierarchyView>getChildren()java.lang.StringgetDescription()longgetId()intgetLevel()@NonNull java.lang.StringgetName()java.lang.StringgetNodePath()HierarchyViewgetParent()longgetRecVersion()@NonNull SystemSpecgetSystemSpec()inthashCode()booleanisLeaf()Hierarchy.BuildertoBuilder()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cern.nxcals.api.domain.Identifiable
hasId
-
-
-
-
Method Detail
-
toBuilder
public Hierarchy.Builder toBuilder()
-
builder
public static Hierarchy.Builder builder()
-
getId
public long getId()
- Specified by:
getIdin interfaceIdentifiable
-
getName
@NonNull public @NonNull java.lang.String getName()
- Specified by:
getNamein interfaceHierarchyView
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceHierarchyView
-
getSystemSpec
@NonNull public @NonNull SystemSpec getSystemSpec()
-
getParent
public HierarchyView getParent()
-
getChildren
public java.util.Set<HierarchyView> getChildren()
-
getNodePath
public java.lang.String getNodePath()
- Specified by:
getNodePathin interfaceHierarchyView
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeafin interfaceHierarchyView
-
getLevel
public int getLevel()
- Specified by:
getLevelin interfaceHierarchyView
-
getRecVersion
public long getRecVersion()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-