Home
last modified time | relevance | path

Searched refs:LongWrapper (Results 1 – 6 of 6) sorted by relevance

/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/
DShakespearePlaysScrabble.kt34 public interface LongWrapper { interface in benchmarks.flow.scrabble.ShakespearePlaysScrabble
37 fun incAndSet(): LongWrapper { in get()
38 return object : LongWrapper { in get()
39 override fun get(): Long = this@LongWrapper.get() + 1L in get()
43 fun add(other: LongWrapper): LongWrapper { in add()
44 return object : LongWrapper { in add()
45 override fun get(): Long = this@LongWrapper.get() + other.get() in add()
50 fun zero(): LongWrapper { in zero()
51 return object : LongWrapper { in zero()
DReactorPlaysScrabble.kt24 val letterScore = Function<Map.Entry<Int, LongWrapper>, Flux<Int>> { entry -> in <lambda>()
37 val histoOfLetters = Function<String, Flux<HashMap<Int, LongWrapper>>> { word -> in <lambda>()
41 { map: HashMap<Int, LongWrapper>, value: Int -> in <lambda>()
42 var newValue: LongWrapper? = map[value] in <lambda>()
44 newValue = LongWrapper.zero() in <lambda>()
52 val blank = Function<Map.Entry<Int, LongWrapper>, Flux<Long>> { entry -> in <lambda>()
58 ….flatMap<Map.Entry<Int, LongWrapper>> { map -> Flux.fromIterable<Map.Entry<Int, LongWrapper>>(Iter… in <lambda>()
71 ….flatMap<Map.Entry<Int, LongWrapper>> { map -> Flux.fromIterable<Map.Entry<Int, LongWrapper>>(Iter… in <lambda>()
DFlowPlaysScrabbleBase.kt27 val letterScore = { entry: Map.Entry<Int, LongWrapper> -> in <lambda>()
42 emit(toIntegerStream(word).fold(HashMap<Int, LongWrapper>()) { accumulator, value -> in <lambda>()
43 var newValue: LongWrapper? = accumulator[value] in <lambda>()
45 newValue = LongWrapper.zero() in <lambda>()
53 val blank = { entry: Map.Entry<Int, LongWrapper> -> in <lambda>()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoerceFloatToIntTest.java62 LongWrapper w = DEFAULT_MAPPER.readValue("{\"l\":-2.25 }", LongWrapper.class); in testLegacyDoubleToIntCoercion()
87 _verifyCoerceFail(READER_LEGACY_FAIL, LongWrapper.class, "{\"l\": 7.7 }"); in testLegacyFailDoubleToLong()
129 LongWrapper w = MAPPER_TO_NULL.readValue( "{\"l\":-2.25 }", LongWrapper.class); in testCoerceConfigFloatToNull()
181 LongWrapper w = MAPPER_TO_EMPTY.readValue( "{\"l\":-2.25 }", LongWrapper.class); in testCoerceConfigFloatToEmpty()
218 LongWrapper w = MAPPER_TRY_CONVERT.readValue( "{\"l\":-2.25 }", LongWrapper.class); in testCoerceConfigFloatSuccess()
249 _verifyCoerceFail(MAPPER_TO_FAIL, LongWrapper.class, "{\"l\": 7.7 }"); in testCoerceConfigFailFromFloat()
/external/kotlinx.coroutines/benchmarks/src/jmh/java/benchmarks/flow/scrabble/
DRxJava2PlaysScrabble.java40 Function<Entry<Integer, LongWrapper>, Flowable<Integer>> letterScore = in play()
54 Function<String, Single<HashMap<Integer, LongWrapper>>> histoOfLetters = in play()
58 (HashMap<Integer, LongWrapper> map, Integer value) -> in play()
60 LongWrapper newValue = map.get(value) ; in play()
70 Function<Entry<Integer, LongWrapper>, Flowable<Long>> blank = in play()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DBaseMapTest.java56 protected static class LongWrapper { class in BaseMapTest
59 public LongWrapper() { } in LongWrapper() method in BaseMapTest.LongWrapper
60 public LongWrapper(long value) { l = value; } in LongWrapper() method in BaseMapTest.LongWrapper