Home
last modified time | relevance | path

Searched refs:Nullable (Results 1 – 25 of 198) sorted by relevance

12345678

/external/guava/guava/src/com/google/common/collect/
DMultimap.java25 import javax.annotation.Nullable;
74 boolean containsKey(@Nullable Object key); in containsKey()
82 boolean containsValue(@Nullable Object value); in containsValue()
90 boolean containsEntry(@Nullable Object key, @Nullable Object value); in containsEntry()
108 boolean put(@Nullable K key, @Nullable V value); in put()
117 boolean remove(@Nullable Object key, @Nullable Object value); in remove()
128 boolean putAll(@Nullable K key, Iterable<? extends V> values); in putAll()
151 Collection<V> replaceValues(@Nullable K key, Iterable<? extends V> values); in replaceValues()
162 Collection<V> removeAll(@Nullable Object key); in removeAll()
182 Collection<V> get(@Nullable K key); in get()
[all …]
DBstModificationResult.java21 import javax.annotation.Nullable;
34 static <N extends BstNode<?, N>> BstModificationResult<N> identity(@Nullable N target) { in identity()
39 @Nullable N originalTarget, @Nullable N changedTarget) { in rebuildingChange()
45 @Nullable N originalTarget, @Nullable N changedTarget) { in rebalancingChange()
50 @Nullable private final N originalTarget;
51 @Nullable private final N changedTarget;
55 @Nullable N originalTarget, @Nullable N changedTarget, ModificationType type) { in BstModificationResult()
61 @Nullable
66 @Nullable
DTable.java27 import javax.annotation.Nullable;
68 boolean contains(@Nullable Object rowKey, @Nullable Object columnKey); in contains()
76 boolean containsRow(@Nullable Object rowKey); in containsRow()
84 boolean containsColumn(@Nullable Object columnKey); in containsColumn()
92 boolean containsValue(@Nullable Object value); in containsValue()
101 V get(@Nullable Object rowKey, @Nullable Object columnKey); in get()
116 boolean equals(@Nullable Object obj); in equals()
160 V remove(@Nullable Object rowKey, @Nullable Object columnKey); in remove()
284 boolean equals(@Nullable Object obj); in equals()
DBstMutationResult.java27 import javax.annotation.Nullable;
48 @Nullable K targetKey, @Nullable N originalRoot, @Nullable N changedRoot, in mutationResult()
55 @Nullable
58 @Nullable
63 private BstMutationResult(@Nullable K targetKey, @Nullable N originalRoot, in BstMutationResult()
64 @Nullable N changedRoot, BstModificationResult<N> modificationResult) { in BstMutationResult()
81 @Nullable
89 @Nullable
99 @Nullable
109 @Nullable
DBstCountBasedBalancePolicies.java27 import javax.annotation.Nullable;
52 BstNodeFactory<N> nodeFactory, N source, @Nullable N left, @Nullable N right) { in noRebalancePolicy()
56 @Nullable in noRebalancePolicy()
58 public N combine(BstNodeFactory<N> nodeFactory, @Nullable N left, @Nullable N right) { in noRebalancePolicy()
85 BstNodeFactory<N> nodeFactory, N source, @Nullable N left, @Nullable N right) {
98 private N rotateL(BstNodeFactory<N> nodeFactory, N source, @Nullable N left, N right) {
108 private N rotateR(BstNodeFactory<N> nodeFactory, N source, N left, @Nullable N right) {
118 private N singleL(BstNodeFactory<N> nodeFactory, N source, @Nullable N left, N right) {
125 private N singleR(BstNodeFactory<N> nodeFactory, N source, N left, @Nullable N right) {
131 @Nullable
[all …]
DHashBasedTable.java29 import javax.annotation.Nullable;
116 @Nullable Object rowKey, @Nullable Object columnKey) { in contains()
120 @Override public boolean containsColumn(@Nullable Object columnKey) { in containsColumn()
124 @Override public boolean containsRow(@Nullable Object rowKey) { in containsRow()
128 @Override public boolean containsValue(@Nullable Object value) { in containsValue()
132 @Override public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get()
136 @Override public boolean equals(@Nullable Object obj) { in equals()
141 @Nullable Object rowKey, @Nullable Object columnKey) { in remove()
DEmptyImmutableTable.java25 import javax.annotation.Nullable;
44 @Override public Object get(@Nullable Object rowKey, in get()
45 @Nullable Object columnKey) { in get()
53 @Override public boolean equals(@Nullable Object obj) { in equals()
85 @Override public boolean contains(@Nullable Object rowKey, in contains()
86 @Nullable Object columnKey) { in contains()
90 @Override public boolean containsColumn(@Nullable Object columnKey) { in containsColumn()
94 @Override public boolean containsRow(@Nullable Object rowKey) { in containsRow()
98 @Override public boolean containsValue(@Nullable Object value) { in containsValue()
DForwardingMultimap.java26 import javax.annotation.Nullable;
57 public boolean containsEntry(@Nullable Object key, @Nullable Object value) { in containsEntry()
62 public boolean containsKey(@Nullable Object key) { in containsKey()
67 public boolean containsValue(@Nullable Object value) { in containsValue()
77 public Collection<V> get(@Nullable K key) { in get()
112 public boolean remove(@Nullable Object key, @Nullable Object value) { in remove()
117 public Collection<V> removeAll(@Nullable Object key) { in removeAll()
136 @Override public boolean equals(@Nullable Object object) { in equals()
DBstBalancePolicy.java19 import javax.annotation.Nullable;
36 N balance(BstNodeFactory<N> nodeFactory, N source, @Nullable N left, @Nullable N right); in balance()
43 @Nullable
44 N combine(BstNodeFactory<N> nodeFactory, @Nullable N left, @Nullable N right); in combine()
DBstNode.java26 import javax.annotation.Nullable;
54 @Nullable
60 @Nullable
63 BstNode(@Nullable K key, @Nullable N left, @Nullable N right) { in BstNode()
72 @Nullable
80 @Nullable
DGeneralRange.java25 import javax.annotation.Nullable;
45 @Nullable in from()
49 @Nullable in from()
67 static <T> GeneralRange<T> downTo(Comparator<? super T> comparator, @Nullable T endpoint, in downTo()
76 static <T> GeneralRange<T> upTo(Comparator<? super T> comparator, @Nullable T endpoint, in upTo()
85 static <T> GeneralRange<T> range(Comparator<? super T> comparator, @Nullable T lower, in range()
86 BoundType lowerType, @Nullable T upper, BoundType upperType) { in range()
92 @Nullable
96 @Nullable
101 @Nullable T lowerEndpoint, BoundType lowerBoundType, boolean hasUpperBound, in GeneralRange()
[all …]
DComparisonChain.java26 import javax.annotation.Nullable;
71 @Nullable T left, @Nullable T right, Comparator<T> comparator) {
108 @Nullable Comparable left, @Nullable Comparable right) { in compare()
111 @Override public <T> ComparisonChain compare(@Nullable T left, in compare()
112 @Nullable T right, @Nullable Comparator<T> comparator) { in compare()
148 @Nullable T left, @Nullable T right, Comparator<T> comparator); in compare()
DAbstractListMultimap.java25 import javax.annotation.Nullable;
60 @Override public List<V> get(@Nullable K key) { in get()
71 @Override public List<V> removeAll(@Nullable Object key) { in removeAll()
83 @Nullable K key, Iterable<? extends V> values) { in replaceValues()
94 @Override public boolean put(@Nullable K key, @Nullable V value) { in put()
115 @Override public boolean equals(@Nullable Object object) { in equals()
DMultiset.java27 import javax.annotation.Nullable;
102 int count(@Nullable Object element); in count()
125 int add(@Nullable E element, int occurrences); in add()
140 int remove(@Nullable Object element, int occurrences); in remove()
298 boolean equals(@Nullable Object object); in equals()
345 boolean contains(@Nullable Object element); in contains()
403 boolean remove(@Nullable Object element); in remove()
DTreeBasedTable.java37 import javax.annotation.Nullable;
177 @Nullable final C lowerBound;
178 @Nullable final C upperBound;
184 TreeRow(R rowKey, @Nullable C lowerBound, @Nullable C upperBound) { in TreeRow()
203 boolean rangeContains(@Nullable Object o) { in rangeContains()
306 @Nullable Object rowKey, @Nullable Object columnKey) { in contains()
310 @Override public boolean containsColumn(@Nullable Object columnKey) { in containsColumn()
314 @Override public boolean containsRow(@Nullable Object rowKey) { in containsRow()
318 @Override public boolean containsValue(@Nullable Object value) { in containsValue()
322 @Override public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get()
[all …]
DImmutableEntry.java23 import javax.annotation.Nullable;
34 ImmutableEntry(@Nullable K key, @Nullable V value) { in ImmutableEntry()
39 @Nullable @Override public K getKey() { in getKey()
43 @Nullable @Override public V getValue() { in getValue()
DBiMap.java24 import javax.annotation.Nullable;
47 V put(@Nullable K key, @Nullable V value); in put()
66 V forcePut(@Nullable K key, @Nullable V value); in forcePut()
DSingletonImmutableTable.java26 import javax.annotation.Nullable;
70 @Override public boolean contains(@Nullable Object rowKey, in contains()
71 @Nullable Object columnKey) { in contains()
75 @Override public boolean containsColumn(@Nullable Object columnKey) { in containsColumn()
79 @Override public boolean containsRow(@Nullable Object rowKey) { in containsRow()
83 @Override public boolean containsValue(@Nullable Object value) { in containsValue()
87 @Override public V get(@Nullable Object rowKey, @Nullable Object columnKey) { in get()
119 @Override public boolean equals(@Nullable Object obj) { in equals()
/external/guava/guava-tests/test/com/google/common/testing/
DNullPointerTesterTest.java32 import javax.annotation.Nullable;
70 staticOneArgNullableCorrectlyDoesNotThrowNPE(@Nullable String s) { in staticOneArgNullableCorrectlyDoesNotThrowNPE()
74 staticOneArgNullableCorrectlyThrowsOtherThanNPE(@Nullable String s) { in staticOneArgNullableCorrectlyThrowsOtherThanNPE()
78 staticOneArgNullableThrowsNPE(@Nullable String s) { in staticOneArgNullableThrowsNPE()
91 public void oneArgNullableCorrectlyDoesNotThrowNPE(@Nullable String s) { in oneArgNullableCorrectlyDoesNotThrowNPE()
94 public void oneArgNullableCorrectlyThrowsOtherThanNPE(@Nullable String s) { in oneArgNullableCorrectlyThrowsOtherThanNPE()
97 public void oneArgNullableThrowsNPE(@Nullable String s) { in oneArgNullableThrowsNPE()
227 public void normalNullable(String first, @Nullable Integer second) { in normalNullable()
232 public void nullableNormal(@Nullable String first, Integer second) { in nullableNormal()
238 @Nullable String first, @Nullable Integer second) { in nullableNullable()
[all …]
/external/guava/guava/src/com/google/common/base/
DEquivalence.java26 import javax.annotation.Nullable;
65 public final boolean equivalent(@Nullable T a, @Nullable T b) { in equivalent()
101 public final int hash(@Nullable T t) { in hash()
151 public final <S extends T> Wrapper<S> wrap(@Nullable S reference) { in wrap()
178 @Nullable private final T reference;
180 private Wrapper(Equivalence<? super T> equivalence, @Nullable T reference) { in Wrapper()
186 @Nullable public T get() { in get()
195 @Override public boolean equals(@Nullable Object obj) { in equals()
256 public final Predicate<T> equivalentTo(@Nullable T target) { in equivalentTo()
263 @Nullable private final T target;
[all …]
DPreconditions.java24 import javax.annotation.Nullable;
86 boolean expression, @Nullable Object errorMessage) { in checkArgument()
112 @Nullable String errorMessageTemplate, in checkArgument()
113 @Nullable Object... errorMessageArgs) { in checkArgument()
143 boolean expression, @Nullable Object errorMessage) { in checkState()
169 @Nullable String errorMessageTemplate, in checkState()
170 @Nullable Object... errorMessageArgs) { in checkState()
202 public static <T> T checkNotNull(T reference, @Nullable Object errorMessage) { in checkNotNull()
227 @Nullable String errorMessageTemplate, in checkNotNull()
228 @Nullable Object... errorMessageArgs) { in checkNotNull()
[all …]
DFunctions.java28 import javax.annotation.Nullable;
114 @Override public boolean equals(@Nullable Object o) { in equals()
143 public static <K, V> Function<K, V> forMap(Map<K, ? extends V> map, @Nullable V defaultValue) { in forMap()
151 ForMapWithDefault(Map<K, ? extends V> map, @Nullable V defaultValue) { in ForMapWithDefault()
162 @Override public boolean equals(@Nullable Object o) { in equals()
208 @Override public boolean equals(@Nullable Object obj) { in equals()
250 @Override public boolean equals(@Nullable Object obj) { in equals()
275 public static <E> Function<Object, E> constant(@Nullable E value) { in constant()
282 public ConstantFunction(@Nullable E value) { in ConstantFunction()
287 public E apply(@Nullable Object from) { in apply()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DBstTesting.java29 import javax.annotation.Nullable;
39 SimpleNode(Character key, @Nullable SimpleNode left, @Nullable SimpleNode right) { in SimpleNode()
49 public boolean equals(@Nullable Object obj) { in equals()
68 SimpleNode source, @Nullable SimpleNode left, @Nullable SimpleNode right) {
76 @Nullable SimpleNode left, @Nullable SimpleNode right) {
80 @Nullable
82 public SimpleNode combine(BstNodeFactory<SimpleNode> nodeFactory, @Nullable SimpleNode left,
83 @Nullable SimpleNode right) {
109 public long treeValue(@Nullable SimpleNode tree) {
135 static void assertInOrderTraversalIs(@Nullable SimpleNode root, String order) { in assertInOrderTraversalIs()
[all …]
DSynchronizedMultimapTest.java28 import javax.annotation.Nullable;
57 @Override public boolean equals(@Nullable Object o) { in equals()
77 @Override public boolean containsKey(@Nullable Object key) { in containsKey()
82 @Override public boolean containsValue(@Nullable Object value) { in containsValue()
87 @Override public boolean containsEntry(@Nullable Object key, in containsEntry()
88 @Nullable Object value) { in containsEntry()
93 @Override public Collection<V> get(@Nullable K key) { in get()
104 @Override public boolean putAll(@Nullable K key, in putAll()
115 @Override public Collection<V> replaceValues(@Nullable K key, in replaceValues()
121 @Override public boolean remove(@Nullable Object key, in remove()
[all …]
/external/guava/guava/src/com/google/common/cache/
DRemovalNotification.java26 import javax.annotation.Nullable;
41 @Nullable private final K key;
42 @Nullable private final V value;
45 RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) { in RemovalNotification()
66 @Nullable @Override public K getKey() { in getKey()
70 @Nullable @Override public V getValue() { in getValue()
78 @Override public boolean equals(@Nullable Object object) { in equals()

12345678