/external/guava/guava-tests/test/com/google/common/collect/ |
D | MoreCollectorsTest.java | 71 Stream.empty().collect(MoreCollectors.onlyElement()); in testOnlyElement() 78 assertThat(Stream.of(1).collect(MoreCollectors.onlyElement())).isEqualTo(1); in testOnlyElementSingleton() 82 assertThat(Stream.of((Object) null).collect(MoreCollectors.onlyElement())).isNull(); in testOnlyElementNull() 87 Stream.of(1, 2).collect(MoreCollectors.onlyElement()); in testOnlyElementMultiple() 96 Stream.of(1, 2, 3, 4, 5, 6).collect(MoreCollectors.onlyElement()); in testOnlyElementMany()
|
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
D | IcuTextWriter.java | 209 String onlyElement = Iterables.getOnlyElement(onlyValue.getElements()); in appendValues() local 211 onlyElement = quoteInside(onlyElement); in appendValues() 218 if (onlyElement.length() <= maxWidth) { in appendValues() 220 printValue(out, onlyElement, format); in appendValues() 225 for (int i = 0; i < onlyElement.length(); i = end) { in appendValues() 226 end = goodBreak(onlyElement, i + maxWidth); in appendValues() 227 String part = onlyElement.substring(i, end); in appendValues()
|
/external/dagger2/java/dagger/testing/compile/ |
D | CompilerTests.java | 20 import static com.google.common.collect.MoreCollectors.onlyElement; 44 .collect(onlyElement()); in compilerDepsJar()
|
/external/turbine/javatests/com/google/turbine/binder/bytecode/ |
D | BytecodeBoundClassTest.java | 20 import static com.google.common.collect.MoreCollectors.onlyElement; 100 .collect(onlyElement()); in methodTypes() 110 .collect(onlyElement()); in methodTypes() 140 .collect(onlyElement()); in fieldTypes()
|
/external/turbine/javatests/com/google/turbine/processing/ |
D | TurbineElementsTest.java | 21 import static com.google.common.collect.MoreCollectors.onlyElement; 255 .collect(onlyElement())) in constantFieldTest() 311 .collect(onlyElement()))) in javadoc() 318 .collect(onlyElement()))) in javadoc()
|
D | ProcessingIntegrationTest.java | 20 import static com.google.common.collect.MoreCollectors.onlyElement; 297 .collect(onlyElement()) in getAllAnnotations()
|
D | TurbineTypeMirrorTest.java | 19 import static com.google.common.collect.MoreCollectors.onlyElement; 276 .collect(onlyElement()) in method()
|
D | TurbineElementTest.java | 225 .collect(MoreCollectors.onlyElement()); in parameter()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | MapKeys.java | 113 final ExecutableElement onlyElement = in getUnwrappedMapKeyType() local 122 mapKeyAnnotationType + "." + onlyElement.getSimpleName() + " cannot be an array"); in getUnwrappedMapKeyType() 135 return keyTypeElementVisitor.visit(onlyElement.getReturnType()); in getUnwrappedMapKeyType()
|
/external/turbine/javatests/com/google/turbine/binder/ |
D | ClassPathBinderTest.java | 21 import static com.google.common.collect.MoreCollectors.onlyElement; 111 .collect(onlyElement()); in interfaces() 123 .collect(onlyElement()); in annotations()
|
/external/auto/value/src/test/java/com/google/auto/value/processor/ |
D | SimplifyWithAnnotationsTest.java | 18 import static com.google.common.collect.MoreCollectors.onlyElement; 163 .collect(onlyElement()); in testTypeSpellings()
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | StreamsBenchmark.java | 63 return stream.collect(MoreCollectors.onlyElement()); in operate()
|
/external/dagger2/java/dagger/internal/codegen/extension/ |
D | DaggerCollectors.java | 72 public static <T> Collector<T, ?, T> onlyElement() { in onlyElement() method in DaggerCollectors
|
/external/guava/guava/src/com/google/common/collect/ |
D | MoreCollectors.java | 81 public static <T> Collector<T, ?, T> onlyElement() { in onlyElement() method in MoreCollectors
|
/external/dagger2/java/dagger/internal/codegen/kotlin/ |
D | KotlinMetadataUtil.java | 120 .collect(DaggerCollectors.onlyElement())) in getEnclosedCompanionObject()
|
D | KotlinMetadata.java | 166 .collect(DaggerCollectors.onlyElement());
|
/external/dagger2/java/dagger/internal/codegen/writing/ |
D | InjectionMethods.java | 277 .collect(DaggerCollectors.onlyElement()) in create()
|