@Test void ofShouldThrowWhenTooBig() { assertThatThrownBy(() -> UidValidity.of(4294967296L)) .isInstanceOf(IllegalArgumentException.class); }
public static UidValidity of(long uidValidity) { Preconditions.checkArgument(isValid(uidValidity), "uidValidity needs to be a non-zero unsigned 32-bit integer"); return new UidValidity(uidValidity); }
UidValidity { public static UidValidity of(long uidValidity) { Preconditions.checkArgument(isValid(uidValidity), "uidValidity needs to be a non-zero unsigned 32-bit integer"); return new UidValidity(uidValidity); } }
UidValidity { public static UidValidity of(long uidValidity) { Preconditions.checkArgument(isValid(uidValidity), "uidValidity needs to be a non-zero unsigned 32-bit integer"); return new UidValidity(uidValidity); } private  UidValidity(long uidValidity); }
UidValidity { public static UidValidity of(long uidValidity) { Preconditions.checkArgument(isValid(uidValidity), "uidValidity needs to be a non-zero unsigned 32-bit integer"); return new UidValidity(uidValidity); } private  UidValidity(long uidValidity); static UidValidity generate(); static UidValidity of(long uidValidity); static boolean isValid(long uidValidityAsLong); boolean isValid(); long asLong(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override String toString(); }
UidValidity { public static UidValidity of(long uidValidity) { Preconditions.checkArgument(isValid(uidValidity), "uidValidity needs to be a non-zero unsigned 32-bit integer"); return new UidValidity(uidValidity); } private  UidValidity(long uidValidity); static UidValidity generate(); static UidValidity of(long uidValidity); static boolean isValid(long uidValidityAsLong); boolean isValid(); long asLong(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override String toString();  }