Home
last modified time | relevance | path

Searched refs:asLong (Results 1 – 14 of 14) sorted by relevance

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/expr/
DLiteralStringValueExprTest.java54 assertThat(new LongLiteralExpr("0B0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
55 assertThat(new LongLiteralExpr("0b0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
56 assertThat(new LongLiteralExpr("0X0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
57 assertThat(new LongLiteralExpr("0x0L").asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
58 assertThat(new LongLiteralExpr(0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
59 assertThat(new LongLiteralExpr(00L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
60 assertThat(new LongLiteralExpr(0B0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
61 assertThat(new LongLiteralExpr(0b0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
62 assertThat(new LongLiteralExpr(0X0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
63 assertThat(new LongLiteralExpr(0x0L).asLong()).isEqualTo(0); in trivialLiteralsAreConverted()
[all …]
/external/guava/guava-tests/test/com/google/common/hash/
DSipHashFunctionTest.java124 assertEquals(0xa129ca6149be45e5L, Hashing.sipHash24(k0, k1).hashBytes(message).asLong()); in test15ByteStringFromSipHashPaper()
165 assertEquals(expected, SIP_WITH_KEY.hashString(input, UTF_8).asLong()); in assertSip()
166 assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
167 assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong()); in assertSip()
168 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong()); in assertSip()
172 assertEquals(expected, SIP_WITH_KEY.hashBytes(input).asLong()); in assertSip()
173 assertEquals(expected, SIP_WITH_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
174 assertEquals(expected, SIP_WITHOUT_KEY.hashBytes(input).asLong()); in assertSip()
175 assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putBytes(input).hash().asLong()); in assertSip()
DHashCodeTest.java79 HashCode fromLong = HashCode.fromLong(expected.asLong); in testFromLong()
352 if (expectedHashCode.asLong == null) { in assertExpectedHashCode()
354 hash.asLong(); in assertExpectedHashCode()
358 assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); in assertExpectedHashCode()
388 final Long asLong; // null means that asLong should throw an exception field in HashCodeTest.ExpectedHashCode
390 ExpectedHashCode(byte[] bytes, int asInt, Long asLong, String toString) { in ExpectedHashCode() argument
393 this.asLong = asLong; in ExpectedHashCode()
/external/turbine/java/com/google/turbine/binder/
DConstEvaluator.java335 return value.asLong(); in coerce()
402 return new Const.LongValue(~expr.asLong().value()); in bitwiseComp()
414 return new Const.LongValue(+expr.asLong().value()); in unaryPlus()
430 return new Const.LongValue(-expr.asLong().value()); in unaryMinus()
475 return new Const.LongValue(a.asLong().value() + b.asLong().value()); in add()
493 return new Const.LongValue(a.asLong().value() - b.asLong().value()); in subtract()
511 return new Const.LongValue(a.asLong().value() * b.asLong().value()); in mult()
529 return new Const.LongValue(a.asLong().value() / b.asLong().value()); in divide()
547 return new Const.LongValue(a.asLong().value() % b.asLong().value()); in mod()
569 return new Const.LongValue(a.asLong().value() << (b.asInteger().value() & LONG_SHIFT_MASK)); in shiftLeft()
[all …]
/external/turbine/java/com/google/turbine/model/
DConst.java74 public LongValue asLong() { in asLong() method in Const.Value
176 public LongValue asLong() { in asLong() method in Const.IntValue
249 public LongValue asLong() { in asLong() method in Const.LongValue
322 public LongValue asLong() { in asLong() method in Const.CharValue
395 public LongValue asLong() { in asLong() method in Const.FloatValue
468 public LongValue asLong() { in asLong() method in Const.DoubleValue
579 public LongValue asLong() { in asLong() method in Const.ShortValue
648 public LongValue asLong() { in asLong() method in Const.ByteValue
/external/guava/guava/src/com/google/common/hash/
DHashCode.java61 public abstract long asLong(); in asLong() method in HashCode
150 public long asLong() { in asLong() method in HashCode.IntHashCode
214 public long asLong() { in asLong() method in HashCode.LongHashCode
232 return hash == that.asLong(); in equalsSameBits()
285 public long asLong() { in asLong() method in HashCode.BytesHashCode
DBloomFilterStrategies.java48 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32()
67 long hash64 = Hashing.murmur3_128().hashObject(object, funnel).asLong(); in MURMUR128_MITZ_32()
/external/smali/util/src/main/java/org/jf/util/
DNumberUtils.java123 String asLong = format.format(value); in isLikelyDouble() local
139 return asDouble.length() < asLong.length(); in isLikelyDouble()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/
DArArchiveInputStream.java162 long len = asLong(metaData, LENGTH_OFFSET, LENGTH_LEN); in getNextArEntry()
182asLong(metaData, LAST_MODIFIED_OFFSET, LAST_MODIFIED_LEN)); in getNextArEntry()
208 private long asLong(final byte[] byteArray, int offset, int len) { in asLong() method in ArArchiveInputStream
/external/guava/guava/src/com/google/common/primitives/
DUnsignedInts.java273 long asLong = x & INT_MASK; in toString() local
274 return Long.toString(asLong, radix); in toString()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/
DLongLiteralExpr.java92 public long asLong() { in asLong() method in LongLiteralExpr
/external/turbine/java/com/google/turbine/bytecode/
DAnnotationWriter.java102 writeConst('J', pool.longInfo(value.asLong().value())); in writeConstElementValue()
DAttributeWriter.java134 output.writeShort(pool.longInfo(value.asLong().value())); in writeConstantValue()
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBinder.java176 return new Const.LongValue(value.asLong().value()); in bindConstValue()