Searched refs:fromNullable (Results 1 – 15 of 15) sorted by relevance
38 Optional.fromNullable(mirror.getExtendsBound()).transform(FOR_TYPE_MIRROR), in forTypeMirror()39 Optional.fromNullable(mirror.getSuperBound()).transform(FOR_TYPE_MIRROR)); in forTypeMirror()
72 return Optional.fromNullable(node.left);77 return Optional.fromNullable(node.right);
74 return Optional.fromNullable(node.left);79 return Optional.fromNullable(node.right);
56 Optional<String> optionalName = Optional.fromNullable("bob"); in testFromNullable()62 assertSame(Optional.absent(), Optional.fromNullable(null)); in testFromNullable_null()
59 Optional<String> optionalName = Optional.fromNullable("bob"); in testFromNullable()65 assertSame(Optional.absent(), Optional.fromNullable(null)); in testFromNullable_null()
92 public static <T> Optional<T> fromNullable(@Nullable T nullableReference) { in fromNullable() method in Optional
143 return Optional.fromNullable(allMembersInjectionBindings().get(owningComponent())); in ownedMembersInjectionBinding()
99 return Optional.fromNullable(getOnlyElement(kinds, null)); in forAnnotatedElement()343 Optional.fromNullable(getOnlyElement(enclosedBuilders, null));
491 Optional<ResolvedBindings> result = Optional.fromNullable(resolvedBindings.get(bindingKey));
227 return Optional.fromNullable(multibindingContributionSnippets.get(binding)); in getMultibindingContributionSnippet()
116 return Optional.fromNullable(obj);
198 return Optional.fromNullable(annotation); in isProvider()
572 return Optional.fromNullable(optional.get().get()); in get()
1746 localValues.set(index, Optional.fromNullable(returnValue));
1239 return Optional.fromNullable((T) JAVA_OPTIONAL_OR_ELSE.invoke(object, (Void) null)); in toOptional()