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 class
Hierarchy.Builder
static class
Hierarchy.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.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.Set<HierarchyView>
getChildren()
java.lang.String
getDescription()
long
getId()
int
getLevel()
@NonNull java.lang.String
getName()
java.lang.String
getNodePath()
HierarchyView
getParent()
long
getRecVersion()
@NonNull SystemSpec
getSystemSpec()
int
hashCode()
boolean
isLeaf()
Hierarchy.Builder
toBuilder()
java.lang.String
toString()
-
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:
getId
in interfaceIdentifiable
-
getName
@NonNull public @NonNull java.lang.String getName()
- Specified by:
getName
in interfaceHierarchyView
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in 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:
getNodePath
in interfaceHierarchyView
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interfaceHierarchyView
-
getLevel
public int getLevel()
- Specified by:
getLevel
in interfaceHierarchyView
-
getRecVersion
public long getRecVersion()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-