@Test public void testAsLong() { assertThat(parse("00:00:00:00:00:00").asLong(), equalTo(0L)); assertThat(parse("01:23:45:Ab:cD:EF").asLong(), equalTo(0x012345ABCDEFL)); assertThat(parse("FF:FF:FF:FF:FF:FF").asLong(), equalTo(0xFFFFFFFFFFFFL)); }
public long asLong() { return _longVal; }
MacAddress implements Comparable<MacAddress>, Serializable { public long asLong() { return _longVal; } }
MacAddress implements Comparable<MacAddress>, Serializable { public long asLong() { return _longVal; } private  MacAddress(long longVal); }
MacAddress implements Comparable<MacAddress>, Serializable { public long asLong() { return _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 long asLong() { return _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();  }