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.
        type - Extended Community Type
        isTransitive - Extended Community transitivity
        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.
        type - Extended Community Type
        True if input type is transitive, false if the type is non-transitive