Class TreeFolder

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class TreeFolder
    extends TreeNode
    This class represents a (simple) composite TreeNode, i.e. a folder having TreeNode-children.
    Author:
    Nils Bühner, Kai Volland, terrestris GmbH & Co. KG
    See Also:
    Serialized Form
    • Constructor Detail

      • TreeFolder

        public TreeFolder()
        Explicitly adding the default constructor as this is important, e.g. for Hibernate: http://goo.gl/3Cr1pw
    • Method Detail

      • getChildren

        public java.util.List<TreeNode> getChildren()
        Returns:
        the children
      • setChildren

        public void setChildren​(java.util.List<TreeNode> children)
        Parameters:
        children - the children to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class TreeNode
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class TreeNode
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate