List of usage examples for com.google.common.primitives UnsignedLongs MAX_VALUE
long MAX_VALUE
To view the source code for com.google.common.primitives UnsignedLongs MAX_VALUE.
Click Source Link
From source file:com.google.gapid.util.Paths.java
public static Path.Any observationsAfter(AtomIndex index, int pool) { if (index == null) { return null; }//from ww w . jav a 2s. co m return Path.Any.newBuilder().setMemory(Path.Memory.newBuilder().setAfter(index.getCommand()).setPool(pool) .setAddress(0).setSize(UnsignedLongs.MAX_VALUE).setExcludeData(true).setExcludeObserved(true)) .build(); }
From source file:com.foundationdb.server.types.mcompat.mcasts.CastUtils.java
public static long parseUnsignedLong(String st, TExecutionContext context) { Object truncated = CastUtils.truncateNonDigits(st, context); if (truncated instanceof String) st = (String) truncated;/*from w w w . ja v a 2 s. co m*/ else st = CastUtils.truncateNonDigitPlainString(((BigDecimal) truncated).toPlainString(), context); long value; try { value = UnsignedLongs.parseUnsignedLong(st); } catch (NumberFormatException e) { // overflow error context.reportOverflow(e.getMessage()); // check wether the value is too big or too small if (st.charAt(0) == '-') value = 0; else value = UnsignedLongs.MAX_VALUE; } return value; }