@Test public void testIsRouteOrigin() { assertTrue(ExtendedCommunity.of(0x0003, 1, 1).isRouteOrigin()); assertTrue(ExtendedCommunity.of(0x0103, 1, 1).isRouteOrigin()); assertTrue(ExtendedCommunity.of(0x0203, 1, 1).isRouteOrigin()); assertFalse(ExtendedCommunity.of(0x0303, 1, 1).isRouteOrigin()); assertFalse(ExtendedCommunity.of(0x0002, 1, 1).isRouteOrigin()); }
public boolean isRouteOrigin() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x03; }
ExtendedCommunity extends Community { public boolean isRouteOrigin() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x03; } }
ExtendedCommunity extends Community { public boolean isRouteOrigin() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x03; } private  ExtendedCommunity(
      byte type, byte subType, long globalAdministrator, long localAdministrator); }
ExtendedCommunity extends Community { public boolean isRouteOrigin() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x03; } private  ExtendedCommunity(
      byte type, byte subType, long globalAdministrator, long localAdministrator); @Nonnull static ExtendedCommunity parse(String communityStr); @Nonnull static Optional<ExtendedCommunity> tryParse(String text); static ExtendedCommunity of(int type, long globalAdministrator, long localAdministrator); static ExtendedCommunity of(int type, Ip globalAdministrator, long localAdministrator); static ExtendedCommunity target(long asn, long value); @Override T accept(CommunityVisitor<T> visitor); @Override boolean isTransitive(); boolean isRouteOrigin(); boolean isRouteTarget(); boolean isVpnDistinguisher(); long getGlobalAdministrator(); long getLocalAdministrator(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull @Override String matchString(); @Override @Nonnull @JsonValue String toString(); }
ExtendedCommunity extends Community { public boolean isRouteOrigin() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x03; } private  ExtendedCommunity(
      byte type, byte subType, long globalAdministrator, long localAdministrator); @Nonnull static ExtendedCommunity parse(String communityStr); @Nonnull static Optional<ExtendedCommunity> tryParse(String text); static ExtendedCommunity of(int type, long globalAdministrator, long localAdministrator); static ExtendedCommunity of(int type, Ip globalAdministrator, long localAdministrator); static ExtendedCommunity target(long asn, long value); @Override T accept(CommunityVisitor<T> visitor); @Override boolean isTransitive(); boolean isRouteOrigin(); boolean isRouteTarget(); boolean isVpnDistinguisher(); long getGlobalAdministrator(); long getLocalAdministrator(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull @Override String matchString(); @Override @Nonnull @JsonValue String toString();  }