Class ExtendedCommunityUtil


  • public final class ExtendedCommunityUtil
    extends Object
    The utility functions related to the extended communities.
    • Method Detail

      • setTransitivity

        public static int setTransitivity​(int type,
                                          boolean isTransitive)
        Sets transitivity flag for the Extended Community type.
        Parameters:
        type - Extended Community Type
        isTransitive - Extended Community transitivity
        Returns:
        Extended Community type with a transitivity flag set if isTransitive false, otherwise returns unchanged type.
      • isTransitive

        public static boolean isTransitive​(int type)
        Check the Extended Community type for transitivity.
        Parameters:
        type - Extended Community Type
        Returns:
        True if input type is transitive, false if the type is non-transitive