@Test public void testIsRouteTarget() { assertTrue(ExtendedCommunity.target(1, 1).isRouteTarget()); assertTrue(ExtendedCommunity.parse("514:65555L:1").isRouteTarget()); assertTrue(ExtendedCommunity.of(0x0002, 1, 1).isRouteTarget()); assertTrue(ExtendedCommunity.of(0x0102, 1, 1).isRouteTarget()); assertTrue(ExtendedCommunity.of(0x0202, 1, 1).isRouteTarget()); assertFalse(ExtendedCommunity.of(0x0302, 1, 1).isRouteTarget()); assertFalse(ExtendedCommunity.of(0x0003, 1, 1).isRouteTarget()); assertFalse(ExtendedCommunity.of(1, 1, 1).isRouteTarget()); }
public boolean isRouteTarget() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x02; }
ExtendedCommunity extends Community { public boolean isRouteTarget() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x02; } }
ExtendedCommunity extends Community { public boolean isRouteTarget() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x02; } private  ExtendedCommunity(
      byte type, byte subType, long globalAdministrator, long localAdministrator); }
ExtendedCommunity extends Community { public boolean isRouteTarget() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x02; } 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 isRouteTarget() { return (_type == 0x00 || _type == 0x01 || _type == 0x02) && _subType == 0x02; } 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();  }