Home
last modified time | relevance | path

Searched refs:onlyElement (Results 1 – 17 of 17) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DMoreCollectorsTest.java71 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/
DIcuTextWriter.java209 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/
DCompilerTests.java20 import static com.google.common.collect.MoreCollectors.onlyElement;
44 .collect(onlyElement()); in compilerDepsJar()
/external/turbine/javatests/com/google/turbine/binder/bytecode/
DBytecodeBoundClassTest.java20 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/
DTurbineElementsTest.java21 import static com.google.common.collect.MoreCollectors.onlyElement;
255 .collect(onlyElement())) in constantFieldTest()
311 .collect(onlyElement()))) in javadoc()
318 .collect(onlyElement()))) in javadoc()
DProcessingIntegrationTest.java20 import static com.google.common.collect.MoreCollectors.onlyElement;
297 .collect(onlyElement()) in getAllAnnotations()
DTurbineTypeMirrorTest.java19 import static com.google.common.collect.MoreCollectors.onlyElement;
276 .collect(onlyElement()) in method()
DTurbineElementTest.java225 .collect(MoreCollectors.onlyElement()); in parameter()
/external/dagger2/java/dagger/internal/codegen/binding/
DMapKeys.java113 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/
DClassPathBinderTest.java21 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/
DSimplifyWithAnnotationsTest.java18 import static com.google.common.collect.MoreCollectors.onlyElement;
163 .collect(onlyElement()); in testTypeSpellings()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DStreamsBenchmark.java63 return stream.collect(MoreCollectors.onlyElement()); in operate()
/external/dagger2/java/dagger/internal/codegen/extension/
DDaggerCollectors.java72 public static <T> Collector<T, ?, T> onlyElement() { in onlyElement() method in DaggerCollectors
/external/guava/guava/src/com/google/common/collect/
DMoreCollectors.java81 public static <T> Collector<T, ?, T> onlyElement() { in onlyElement() method in MoreCollectors
/external/dagger2/java/dagger/internal/codegen/kotlin/
DKotlinMetadataUtil.java120 .collect(DaggerCollectors.onlyElement())) in getEnclosedCompanionObject()
DKotlinMetadata.java166 .collect(DaggerCollectors.onlyElement());
/external/dagger2/java/dagger/internal/codegen/writing/
DInjectionMethods.java277 .collect(DaggerCollectors.onlyElement()) in create()