Class AbstractNamedObject

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractNamedObject​(@NotNull java.lang.String path)
      Creates a new instance.
    • Constructor Detail

      • AbstractNamedObject

        protected AbstractNamedObject​(@NotNull
                                      @NotNull java.lang.String path)
        Creates a new instance.
        Parameters:
        path - Path
        See Also:
        getPath(), setPath(String)
    • Method Detail

      • getPath

        @NotNull
        public @NotNull java.lang.String getPath()
        Description copied from interface: NamedObject
        Get the path of this AbstractNamedObject. The path should be of user presentable but 100% machine processable nature. The path must be usable for creating a tree for this AbstractNamedObject. The path returned by this method does not include the name of the object. The path separator must be "/" independently of the underlying operating system.
        Specified by:
        getPath in interface NamedObject
        Returns:
        path of this AbstractNamedObject
        See Also:
        NamedObject.setPath(String)
      • setPath

        public void setPath​(@NotNull
                            @NotNull java.lang.String path)
        Description copied from interface: NamedObject
        Set the path of this AbstractNamedObject.
        Specified by:
        setPath in interface NamedObject
        Parameters:
        path - new path for this AbstractNamedObject
        See Also:
        NamedObject.getPath()
      • compareTo

        public int compareTo​(@NotNull
                             @NotNull NamedObject o)
        Specified by:
        compareTo in interface java.lang.Comparable<NamedObject>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(@Nullable
                              @Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface NamedObject
        Overrides:
        toString in class java.lang.Object