@Test public void testInvalidCombo() { _thrown.expect(IllegalArgumentException.class); from(65555L, 65555L); }
@Nonnull public static RouteDistinguisher from(int asn1, long asn2) { checkArgument(asn1 >= 0 && asn1 <= 0xFFFF, ERR_MSG_SHORT_TEMPLATE, asn1); checkArgument(asn2 >= 0 && asn2 <= 0xFFFFFFFFL, ERR_MSG_INT_TEMPLATE, asn2); return new RouteDistinguisher(((long) asn1 << 32) | asn2, Type.TYPE0); }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Nonnull public static RouteDistinguisher from(int asn1, long asn2) { checkArgument(asn1 >= 0 && asn1 <= 0xFFFF, ERR_MSG_SHORT_TEMPLATE, asn1); checkArgument(asn2 >= 0 && asn2 <= 0xFFFFFFFFL, ERR_MSG_INT_TEMPLATE, asn2); return new RouteDistinguisher(((long) asn1 << 32) | asn2, Type.TYPE0); } }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Nonnull public static RouteDistinguisher from(int asn1, long asn2) { checkArgument(asn1 >= 0 && asn1 <= 0xFFFF, ERR_MSG_SHORT_TEMPLATE, asn1); checkArgument(asn2 >= 0 && asn2 <= 0xFFFFFFFFL, ERR_MSG_INT_TEMPLATE, asn2); return new RouteDistinguisher(((long) asn1 << 32) | asn2, Type.TYPE0); } private  RouteDistinguisher(long value, Type type); }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Nonnull public static RouteDistinguisher from(int asn1, long asn2) { checkArgument(asn1 >= 0 && asn1 <= 0xFFFF, ERR_MSG_SHORT_TEMPLATE, asn1); checkArgument(asn2 >= 0 && asn2 <= 0xFFFFFFFFL, ERR_MSG_INT_TEMPLATE, asn2); return new RouteDistinguisher(((long) asn1 << 32) | asn2, Type.TYPE0); } private  RouteDistinguisher(long value, Type type); @Nonnull static RouteDistinguisher parse(String value); @Nonnull static RouteDistinguisher from(int asn1, long asn2); @Nonnull static RouteDistinguisher from(Ip ip, int asn); @Nonnull static RouteDistinguisher from(long asn1, int asn2); @Nonnull static RouteDistinguisher from(long asn1, long asn2); long getValue(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(RouteDistinguisher o); @Override @Nonnull @JsonValue String toString(); }
RouteDistinguisher implements Serializable, Comparable<RouteDistinguisher> { @Nonnull public static RouteDistinguisher from(int asn1, long asn2) { checkArgument(asn1 >= 0 && asn1 <= 0xFFFF, ERR_MSG_SHORT_TEMPLATE, asn1); checkArgument(asn2 >= 0 && asn2 <= 0xFFFFFFFFL, ERR_MSG_INT_TEMPLATE, asn2); return new RouteDistinguisher(((long) asn1 << 32) | asn2, Type.TYPE0); } private  RouteDistinguisher(long value, Type type); @Nonnull static RouteDistinguisher parse(String value); @Nonnull static RouteDistinguisher from(int asn1, long asn2); @Nonnull static RouteDistinguisher from(Ip ip, int asn); @Nonnull static RouteDistinguisher from(long asn1, int asn2); @Nonnull static RouteDistinguisher from(long asn1, long asn2); long getValue(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(RouteDistinguisher o); @Override @Nonnull @JsonValue String toString();  }