Interface IWeightsChar

    • Method Detail

      • get

        char get​(int element)
        Get the weight associated with the given element.
        Parameters:
        element - an element (edge/vertex.)
        Returns:
        the weight associated with the given element.
      • get

        @Deprecated
        default char get​(Integer element)
        Deprecated.
        Please use get(int) instead to avoid un/boxing.
        Get the weight associated with the given element.
        Specified by:
        get in interface WeightsChar<Integer>
        Parameters:
        element - an element (edge/vertex).
        Returns:
        the weight associated with the given element.
      • getAsObj

        @Deprecated
        default Character getAsObj​(int element)
        Deprecated.
        Please use get(int) instead to avoid un/boxing.
        Get the weight associated with the given id.
        Specified by:
        getAsObj in interface IWeights<Character>
        Parameters:
        element - an id of edge/vertex
        Returns:
        the weight associated with the given id
      • set

        void set​(int element,
                 char weight)
        Set the weight associated with the given element.
        Parameters:
        element - an element (edge/vertex)
        weight - new weight that will be associated with the given element
      • set

        @Deprecated
        default void set​(Integer element,
                         char weight)
        Deprecated.
        Please use set(int, char) instead to avoid un/boxing.
        Set the weight associated with the given element.
        Specified by:
        set in interface WeightsChar<Integer>
        Parameters:
        element - an element (edge/vertex).
        weight - new weight that will be associated with the given element
      • setAsObj

        @Deprecated
        default void setAsObj​(int element,
                              Character weight)
        Deprecated.
        Please use set(int, char) instead to avoid un/boxing.
        Set the weight associated with the given id.
        Specified by:
        setAsObj in interface IWeights<Character>
        Parameters:
        element - an id of edge/vertex
        weight - new weight that will be associated with the given id