@Test public void testJsonSerialization() { LargeCommunity lc = LargeCommunity.of(1L, 2L, 3L); assertThat(SerializationUtils.clone(lc), equalTo(lc)); }
public static LargeCommunity of(long globalAdministrator, long localData1, long localData2) { checkArgument( globalAdministrator >= 0 && globalAdministrator <= 0xFFFFFFFFL, "Invalid global administrator value: %s", globalAdministrator); checkArgument( localData1 >= 0 && localData1 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData1); checkArgument( localData2 >= 0 && localData2 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData2); return new LargeCommunity(globalAdministrator, localData1, localData2); }
LargeCommunity extends Community { public static LargeCommunity of(long globalAdministrator, long localData1, long localData2) { checkArgument( globalAdministrator >= 0 && globalAdministrator <= 0xFFFFFFFFL, "Invalid global administrator value: %s", globalAdministrator); checkArgument( localData1 >= 0 && localData1 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData1); checkArgument( localData2 >= 0 && localData2 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData2); return new LargeCommunity(globalAdministrator, localData1, localData2); } }
LargeCommunity extends Community { public static LargeCommunity of(long globalAdministrator, long localData1, long localData2) { checkArgument( globalAdministrator >= 0 && globalAdministrator <= 0xFFFFFFFFL, "Invalid global administrator value: %s", globalAdministrator); checkArgument( localData1 >= 0 && localData1 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData1); checkArgument( localData2 >= 0 && localData2 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData2); return new LargeCommunity(globalAdministrator, localData1, localData2); } private  LargeCommunity(long globalAdministrator, long localData1, long localData2); }
LargeCommunity extends Community { public static LargeCommunity of(long globalAdministrator, long localData1, long localData2) { checkArgument( globalAdministrator >= 0 && globalAdministrator <= 0xFFFFFFFFL, "Invalid global administrator value: %s", globalAdministrator); checkArgument( localData1 >= 0 && localData1 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData1); checkArgument( localData2 >= 0 && localData2 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData2); return new LargeCommunity(globalAdministrator, localData1, localData2); } 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 of(long globalAdministrator, long localData1, long localData2) { checkArgument( globalAdministrator >= 0 && globalAdministrator <= 0xFFFFFFFFL, "Invalid global administrator value: %s", globalAdministrator); checkArgument( localData1 >= 0 && localData1 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData1); checkArgument( localData2 >= 0 && localData2 <= 0xFFFFFFFFL, "Invalid local administrator value: %s", localData2); return new LargeCommunity(globalAdministrator, localData1, localData2); } 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();  }