@Test public void testOfInvalidTooHigh() { _thrown.expect(IllegalArgumentException.class); of(0xFFFFFFFFFFFFFL); }
public static @Nonnull MacAddress of(long longVal) { checkArgument( longVal == (longVal & 0xFFFFFFFFFFFFL), "Cannot create MAC address from invalid long value: %s", longVal); return new MacAddress(longVal); }
MacAddress implements Comparable<MacAddress>, Serializable { public static @Nonnull MacAddress of(long longVal) { checkArgument( longVal == (longVal & 0xFFFFFFFFFFFFL), "Cannot create MAC address from invalid long value: %s", longVal); return new MacAddress(longVal); } }
MacAddress implements Comparable<MacAddress>, Serializable { public static @Nonnull MacAddress of(long longVal) { checkArgument( longVal == (longVal & 0xFFFFFFFFFFFFL), "Cannot create MAC address from invalid long value: %s", longVal); return new MacAddress(longVal); } private  MacAddress(long longVal); }
MacAddress implements Comparable<MacAddress>, Serializable { public static @Nonnull MacAddress of(long longVal) { checkArgument( longVal == (longVal & 0xFFFFFFFFFFFFL), "Cannot create MAC address from invalid long value: %s", longVal); return new MacAddress(longVal); } private  MacAddress(long longVal); static @Nonnull MacAddress of(long longVal); static @Nonnull MacAddress parse(String macAddressStr); long asLong(); @Override int compareTo(MacAddress o); @Override boolean equals(Object obj); @Override int hashCode(); @JsonValue @Override @Nonnull String toString(); }
MacAddress implements Comparable<MacAddress>, Serializable { public static @Nonnull MacAddress of(long longVal) { checkArgument( longVal == (longVal & 0xFFFFFFFFFFFFL), "Cannot create MAC address from invalid long value: %s", longVal); return new MacAddress(longVal); } private  MacAddress(long longVal); static @Nonnull MacAddress of(long longVal); static @Nonnull MacAddress parse(String macAddressStr); long asLong(); @Override int compareTo(MacAddress o); @Override boolean equals(Object obj); @Override int hashCode(); @JsonValue @Override @Nonnull String toString();  }