Element
edu.jas.structure

Interface Element<C extends Element<C>>

    • Method Detail

      • copy

        C copy()
        Clone this Element.
        Returns:
        Creates and returns a copy of this Element.
      • equals

        boolean equals(Object b)
        Test if this is equal to b.
        Overrides:
        equals in class Object
        Parameters:
        b -
        Returns:
        true if this is equal to b, else false.
      • hashCode

        int hashCode()
        Hashcode of this Element.
        Overrides:
        hashCode in class Object
        Returns:
        the hashCode.
      • compareTo

        int compareTo(C b)
        Compare this to b. I.e. this < b iff this.compareTo(b) < 0. Note: may not be meaningful if structure has no order.
        Specified by:
        compareTo in interface Comparable<C extends Element<C>>
        Parameters:
        b -
        Returns:
        0 if this is equal to b, -1 if this is less then b, else +1.
      • factory

        ElemFactory<C> factory()
        Get the corresponding element factory.
        Returns:
        factory for this Element.
      • toScript

        String toScript()
        Get a scripting compatible string representation.
        Returns:
        script compatible representation for this Element.
      • toScriptFactory

        String toScriptFactory()
        Get a scripting compatible string representation of the factory.
        Returns:
        script compatible representation for this ElemFactory.

SCaVis 2.1 © jWork.ORG