@Test public void testParseLargeLocal1() { thrown.expect(IllegalArgumentException.class); LargeCommunity.parse("large:1:4294967296:1"); }
public static LargeCommunity parse(String value) { String[] parts = value.split(":"); checkArgument( parts.length == 4 && parts[0].equalsIgnoreCase("large"), "Invalid large BGP community string %s", value); return of( Long.parseUnsignedLong(parts[1]), Long.parseUnsignedLong(parts[2]), Long.parseUnsignedLong(parts[3])); }
LargeCommunity extends Community { public static LargeCommunity parse(String value) { String[] parts = value.split(":"); checkArgument( parts.length == 4 && parts[0].equalsIgnoreCase("large"), "Invalid large BGP community string %s", value); return of( Long.parseUnsignedLong(parts[1]), Long.parseUnsignedLong(parts[2]), Long.parseUnsignedLong(parts[3])); } }
LargeCommunity extends Community { public static LargeCommunity parse(String value) { String[] parts = value.split(":"); checkArgument( parts.length == 4 && parts[0].equalsIgnoreCase("large"), "Invalid large BGP community string %s", value); return of( Long.parseUnsignedLong(parts[1]), Long.parseUnsignedLong(parts[2]), Long.parseUnsignedLong(parts[3])); } private  LargeCommunity(long globalAdministrator, long localData1, long localData2); }
LargeCommunity extends Community { public static LargeCommunity parse(String value) { String[] parts = value.split(":"); checkArgument( parts.length == 4 && parts[0].equalsIgnoreCase("large"), "Invalid large BGP community string %s", value); return of( Long.parseUnsignedLong(parts[1]), Long.parseUnsignedLong(parts[2]), Long.parseUnsignedLong(parts[3])); } private  LargeCommunity(long globalAdministrator, long localData1, long localData2); static LargeCommunity parse(String value); @Nonnull static Optional<LargeCommunity> tryParse(String text); static LargeCommunity of(long globalAdministrator, long localData1, long localData2); @Override T accept(CommunityVisitor<T> visitor); long getGlobalAdministrator(); long getLocalData1(); long getLocalData2(); @Override boolean isTransitive(); @Nonnull @Override String matchString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull @Override String toString(); }
LargeCommunity extends Community { public static LargeCommunity parse(String value) { String[] parts = value.split(":"); checkArgument( parts.length == 4 && parts[0].equalsIgnoreCase("large"), "Invalid large BGP community string %s", value); return of( Long.parseUnsignedLong(parts[1]), Long.parseUnsignedLong(parts[2]), Long.parseUnsignedLong(parts[3])); } private  LargeCommunity(long globalAdministrator, long localData1, long localData2); static LargeCommunity parse(String value); @Nonnull static Optional<LargeCommunity> tryParse(String text); static LargeCommunity of(long globalAdministrator, long localData1, long localData2); @Override T accept(CommunityVisitor<T> visitor); long getGlobalAdministrator(); long getLocalData1(); long getLocalData2(); @Override boolean isTransitive(); @Nonnull @Override String matchString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull @Override String toString();  }