Home
last modified time | relevance | path

Searched refs:isPresent (Results 1 – 25 of 72) sorted by relevance

123

/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DOptionalBinderTest.java155 assertFalse(optional.isPresent()); in testOptionalIsAbsentByDefault()
158 assertFalse(optionalP.isPresent()); in testOptionalIsAbsentByDefault()
162 assertFalse(optionalJxP.isPresent()); in testOptionalIsAbsentByDefault()
168 assertFalse(optional.isPresent()); in testOptionalIsAbsentByDefault()
171 assertFalse(optionalP.isPresent()); in testOptionalIsAbsentByDefault()
174 assertFalse(optionalJxP.isPresent()); in testOptionalIsAbsentByDefault()
229 assertTrue(optional.isPresent()); in testSetDefault()
233 assertTrue(optionalP.isPresent()); in testSetDefault()
238 assertTrue(optionalJxP.isPresent()); in testSetDefault()
245 assertTrue(optional.isPresent()); in testSetDefault()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DEnumsTest.java48 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent()
49 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent()
50 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent()
58 assertFalse(Enums.getIfPresent(TestEnum.class, "cHEETO").isPresent()); in testGetIfPresent_caseSensitive()
59 assertFalse(Enums.getIfPresent(TestEnum.class, "Honda").isPresent()); in testGetIfPresent_caseSensitive()
60 assertFalse(Enums.getIfPresent(TestEnum.class, "poodlE").isPresent()); in testGetIfPresent_caseSensitive()
DOptionalTest.java40 assertFalse(optionalName.isPresent()); in testAbsent()
66 assertFalse(Optional.absent().isPresent()); in testIsPresent_no()
70 assertTrue(Optional.of("training").isPresent()); in testIsPresent_yes()
/external/guava/guava-tests/test/com/google/common/base/
DEnumsTest.java57 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent()
58 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent()
59 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent()
67 assertFalse(Enums.getIfPresent(TestEnum.class, "cHEETO").isPresent()); in testGetIfPresent_caseSensitive()
68 assertFalse(Enums.getIfPresent(TestEnum.class, "Honda").isPresent()); in testGetIfPresent_caseSensitive()
69 assertFalse(Enums.getIfPresent(TestEnum.class, "poodlE").isPresent()); in testGetIfPresent_caseSensitive()
98 assertTrue(result.isPresent()); in doTestClassUnloading()
103 assertFalse(result.isPresent()); in doTestClassUnloading()
DOptionalTest.java43 assertFalse(optionalName.isPresent()); in testAbsent()
69 assertFalse(Optional.absent().isPresent()); in testIsPresent_no()
73 assertTrue(Optional.of("training").isPresent()); in testIsPresent_yes()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DBindingGraph.java191 ImmutableSet<TypeElement> componentDependencyTypes = componentMirror.isPresent()
234 if (componentMethodRequest.isPresent()) {
320 if (mapProviderKey.isPresent()) {
325 if (mapProducerKey.isPresent()) {
335 setKeyFromProduced.isPresent()
372 provisionBinding.isPresent()
412 if (owningResolver.isPresent() && !owningResolver.get().equals(this)) {
428 return !binding.scope().isPresent()
437 if (membersInjectionBinding.parentInjectorRequest().isPresent()
460 if (bindingScope.isPresent()) {
[all …]
DAbstractComponentWriter.java187 checkState(snippet.isPresent(), "no builder or component field for %s", contributionType); in getComponentContributionSnippet()
291 if (builderSpec.isPresent()) { in addBuilder()
324 if (builderSpec.isPresent()) { in addBuildMethod()
365 if (builderSpec.isPresent()) { in addBuilderMethods()
471 if (staticMemberSelect.isPresent()) { in addField()
477 boolean useRawType = bindingPackage.isPresent() in addField()
555 && !contributionBinding.scope().isPresent()) { in staticMemberSelect()
565 if (membersInjectionBinding.isPresent() in staticMemberSelect()
585 if (componentMethod.dependencyRequest().isPresent()) { in implementInterfaceMethods()
698 if (builderName.isPresent()) { in initializeFrameworkTypes()
[all …]
DFactoryGenerator.java159 if (binding.membersInjectionRequest().isPresent()) { in write()
196 Map<String, TypeName> params = constructorWriter.isPresent() in write()
245 } else if (binding.nullableType().isPresent() in write()
247 if (binding.nullableType().isPresent()) { in write()
265 } else if (binding.membersInjectionRequest().isPresent()) { in write()
DSubcomponentWriter.java114 graph.componentDescriptor().builderSpec().isPresent() in createComponentClass()
127 if (graph.componentDescriptor().builderSpec().isPresent()) { in addBuilder()
135 verify(graph.componentDescriptor().builderSpec().isPresent()); in createBuilder()
143 if (graph.componentDescriptor().builderSpec().isPresent()) { in addFactoryMethods()
DBindingGraphValidator.java167 if (entryPoint.isPresent()) { in validateSubgraph()
357 if (binding.nullableType().isPresent()) { in validateNullability()
547 if (componentAnnotation.isPresent()) { in validateComponentHierarchy()
570 if (scope.isPresent()) { in validateDependencyScopes()
572 if (scopeCycleValidationType.diagnosticKind().isPresent() in validateDependencyScopes()
622 if (!componentDesc.builderSpec().isPresent()) { in validateBuilders()
677 if (scope.isPresent()) { in validateScopeHierarchy()
685 if (scopeCycleValidationType.diagnosticKind().isPresent()) { in validateScopeHierarchy()
694 if (componentAnnotation.isPresent()) { in validateScopeHierarchy()
723 if (bindingScope.isPresent() && !bindingScope.equals(componentScope)) { in validateComponentScope()
[all …]
DScope.java70 return scopeAnnotation.isPresent() ? new Scope(scopeAnnotation.get()) : UNSCOPED; in scopeOf()
76 public boolean isPresent() { in isPresent() method in Scope
DKey.java104 return !qualifier().isPresent(); in isValidMembersInjectionKey()
113 if (qualifier().isPresent()) { in isValidImplicitProvisionKey()
257 switch (providesType.isPresent()
268 providesType.isPresent() ? getProviderElement() : getProducerElement());
287 return MapKeys.unwrapValue(mapKeyAnnotation).isPresent()
DProductionComponentValidator.java69 if (!getAnnotationMirror(moduleElement, Module.class).isPresent() in validate()
70 && !getAnnotationMirror(moduleElement, ProducerModule.class).isPresent()) { in validate()
DProvisionBinding.java97 checkArgument(!getQualifier(constructorElement).isPresent()); in forInjectConstructor()
103 if (!enclosingCxtorType.getTypeArguments().isEmpty() && resolvedType.isPresent()) { in forInjectConstructor()
114 checkArgument(!key.qualifier().isPresent()); in forInjectConstructor()
193 implicitMapOfProviderKey.isPresent(), in implicitMapOfProviderBinding()
DComponentWriter.java70 graph.componentDescriptor().builderSpec().isPresent() in createBuilder()
96 graph.componentDescriptor().builderSpec().isPresent() in addFactoryMethods()
DMethodSignatureFormatter.java61 if (container.isPresent()) { in format()
100 if (qualifier.isPresent()) { in appendParameter()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DWildcardName.java45 if (extendsBound.isPresent()) { in referencedClasses()
48 if (superBound.isPresent()) { in referencedClasses()
57 if (extendsBound.isPresent()) { in write()
61 if (superBound.isPresent()) { in write()
DJavaWriter.java144 && !className.enclosingClassName().isPresent()) in write()
149 while (importCandidate.isPresent() in write()
154 if (importCandidate.isPresent()) { in write()
226 while (enclosingClassName.isPresent()) { in sourceReferenceForClassName()
253 && !className.enclosingClassName().isPresent() in isImported()
DMethodWriter.java83 if (body.isPresent()) { in body()
101 if (body.isPresent()) { in write()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DResultsUploader.java95 if (uploadUri.isPresent()) { in processTrial()
97 if (apiKey.isPresent()) { in processTrial()
124 if (uploadUri.isPresent()) { in close()
125 if (runId.isPresent()) { in close()
DOutputFileDumper.java97 if (!writer.isPresent()) { in processTrial()
111 if (writer.isPresent()) { in processTrial()
117 if (writer.isPresent()) { in close()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DBinaryTreeTraverser.java65 if (left.isPresent()) { in children()
72 if (right.isPresent()) { in children()
130 if (node.isPresent()) {
/external/guava/guava/src/com/google/common/collect/
DBinaryTreeTraverser.java72 if (left.isPresent()) { in children()
79 if (right.isPresent()) { in children()
208 if (node.isPresent()) {
/external/guava/guava/src/com/google/common/base/
DOptional.java103 public abstract boolean isPresent(); in isPresent() method in Optional
230 if (optional.isPresent()) { in presentInstances()
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/
DBoundFieldModule.java181 if (!this.naturalType.isPresent()) { in getBoundType()
292 if (fieldInfo.naturalType.isPresent()) { in bindField()
369 if (fieldInfoOpt.isPresent()) { in configure()

123