HomeSort by relevance Sort by last modified time
    Searched refs:checkArgument (Results 1 - 25 of 157) sorted by null

1 2 3 4 5 6 7

  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
RegularImmutableSet.java 19 import static com.google.common.base.Preconditions.checkArgument;
34 checkArgument(delegate.size() >= 2);
EnumMultiset.java 17 import static com.google.common.base.Preconditions.checkArgument;
48 checkArgument(iterator.hasNext(), "EnumMultiset constructor passed empty Iterable");
EnumBiMap.java 19 import static com.google.common.base.Preconditions.checkArgument;
83 checkArgument(!map.isEmpty());
91 checkArgument(!map.isEmpty());
  /external/guava/guava/src/com/google/common/cache/
CacheStats.java 19 import static com.google.common.base.Preconditions.checkArgument;
72 checkArgument(hitCount >= 0);
73 checkArgument(missCount >= 0);
74 checkArgument(loadSuccessCount >= 0);
75 checkArgument(loadExceptionCount >= 0);
76 checkArgument(totalLoadTime >= 0);
77 checkArgument(evictionCount >= 0);
  /external/guava/guava/src/com/google/common/net/
HostAndPort.java 19 import static com.google.common.base.Preconditions.checkArgument;
130 checkArgument(isValidPort(port));
132 checkArgument(!parsedHost.hasPort());
157 checkArgument(matcher.matches(), "Invalid bracketed host/port: %s", hostPortString);
177 checkArgument(!portString.startsWith("+"), "Unparseable port number: %s", hostPortString);
183 checkArgument(isValidPort(port), "Port number out of range: %s", hostPortString);
200 checkArgument(isValidPort(defaultPort));
223 checkArgument(!hasBracketlessColons, "Possible bracketless IPv6 literal: %s", host);
  /external/guava/guava/src/com/google/common/primitives/
SignedBytes.java 19 import static com.google.common.base.Preconditions.checkArgument;
58 checkArgument(result == value, "Out of range: %s", value);
102 checkArgument(array.length > 0);
121 checkArgument(array.length > 0);
AndroidInteger.java 20 import static com.google.common.base.Preconditions.checkArgument;
43 checkArgument(radix >= Character.MIN_RADIX,
45 checkArgument(radix <= Character.MAX_RADIX,
UnsignedBytes.java 19 import static com.google.common.base.Preconditions.checkArgument;
78 checkArgument(value >> 8 == 0, "out of range: %s", value);
124 checkArgument(array.length > 0);
144 checkArgument(array.length > 0);
UnsignedInts.java 17 import static com.google.common.base.Preconditions.checkArgument;
83 checkArgument(array.length > 0);
103 checkArgument(array.length > 0);
  /external/guava/guava/src/com/google/common/hash/
Hashing.java 17 import static com.google.common.base.Preconditions.checkArgument;
189 checkArgument(buckets > 0, "buckets must be positive: %s", buckets);
222 checkArgument(iterator.hasNext(), "Must be at least 1 hash code to combine.");
227 checkArgument(nextBytes.length == resultBytes.length,
248 checkArgument(iterator.hasNext(), "Must be at least 1 hash code to combine.");
252 checkArgument(nextBytes.length == resultBytes.length,
265 checkArgument(bits > 0, "Number of bits must be positive");
BloomFilter.java 17 import static com.google.common.base.Preconditions.checkArgument;
79 Preconditions.checkArgument(numHashFunctions > 0, "numHashFunctions zero or negative");
133 checkArgument(expectedInsertions > 0, "Expected insertions must be positive");
134 checkArgument(falsePositiveProbability > 0.0 & falsePositiveProbability < 1.0,
BloomFilterStrategies.java 5 import static com.google.common.base.Preconditions.checkArgument;
70 checkArgument(data.length > 0, "data length is zero!");
  /external/guava/guava/src/com/google/common/io/
Resources.java 19 import static com.google.common.base.Preconditions.checkArgument;
152 checkArgument(url != null, "resource %s not found.", resourceName);
164 checkArgument(url != null, "resource %s relative to %s not found.",
  /external/guava/guava/src/com/google/common/base/
Splitter.java 19 import static com.google.common.base.Preconditions.checkArgument;
166 checkArgument(separator.length() != 0,
212 checkArgument(!separatorPattern.matcher("").matches(),
263 checkArgument(length > 0, "The length may not be less than 1");
326 checkArgument(limit > 0, "must be greater than zero: %s", limit);
448 checkArgument(entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
450 checkArgument(!map.containsKey(key), "Duplicate key [%s] found.", key);
452 checkArgument(entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
456 checkArgument(!entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
  /external/guava/guava-tests/test/com/google/common/collect/
SimpleAbstractMultisetTest.java 17 import static com.google.common.base.Preconditions.checkArgument;
71 checkArgument(occurrences >= 0);
79 checkArgument(occurrences <= Integer.MAX_VALUE - frequency);
126 checkArgument(occurrences >= 0);
  /external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
Splitter.java 19 import static com.google.common.base.Preconditions.checkArgument;
163 checkArgument(separator.length() != 0,
205 checkArgument(length > 0, "The length may not be less than 1");
268 checkArgument(limit > 0, "must be greater than zero: %s", limit);
390 checkArgument(entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
392 checkArgument(!map.containsKey(key), "Duplicate key [%s] found.", key);
394 checkArgument(entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
398 checkArgument(!entryFields.hasNext(), INVALID_ENTRY_MESSAGE, entry);
  /external/jsilver/src/com/google/streamhtmlparser/impl/
InternalState.java 59 Preconditions.checkArgument(id >= FIRST_ID);
60 Preconditions.checkArgument(id <= MAX_ID);
ParserStateTable.java 165 Preconditions.checkArgument(chr >= 0 && chr < MAX_CHARS,
177 Preconditions.checkArgument(start >= 0 && start < MAX_CHARS,
179 Preconditions.checkArgument(end >= 0 && end < MAX_CHARS,
  /external/guava/guava-tests/test/com/google/common/base/
PreconditionsTest.java 34 Preconditions.checkArgument(true);
39 Preconditions.checkArgument(false);
46 Preconditions.checkArgument(true, IGNORE_ME);
51 Preconditions.checkArgument(false, new Message());
60 Preconditions.checkArgument(false, null);
68 Preconditions.checkArgument(true, "%s", IGNORE_ME);
73 Preconditions.checkArgument(false, FORMAT, 5);
  /external/guava/guava/src/com/google/common/collect/
ContiguousSet.java 17 import static com.google.common.base.Preconditions.checkArgument;
53 checkArgument(comparator().compare(fromElement, toElement) <= 0);
61 checkArgument(comparator().compare(fromElement, toElement) <= 0);
EnumMultiset.java 17 import static com.google.common.base.Preconditions.checkArgument;
52 checkArgument(iterator.hasNext(), "EnumMultiset constructor passed empty Iterable");
  /external/guava/guava/src/com/google/common/util/concurrent/
ThreadFactoryBuilder.java 19 import static com.google.common.base.Preconditions.checkArgument;
95 checkArgument(priority >= Thread.MIN_PRIORITY,
97 checkArgument(priority <= Thread.MAX_PRIORITY,
SimpleTimeLimiter.java 19 import static com.google.common.base.Preconditions.checkArgument;
89 checkArgument(timeoutDuration > 0, "bad timeout: " + timeoutDuration);
90 checkArgument(interfaceType.isInterface(),
124 checkArgument(timeoutDuration > 0, "timeout must be positive: %s",
  /external/jsilver/src/com/google/streamhtmlparser/util/
JavascriptTokenBuffer.java 224 Preconditions.checkArgument(start <= end);
225 Preconditions.checkArgument(start < 0);
226 Preconditions.checkArgument(end < 0);
  /packages/apps/Tag/src/com/android/apps/tag/record/
TextRecord.java 81 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN);
82 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT));
86 Preconditions.checkArgument(payload.length > 0);
104 Preconditions.checkArgument(payload.length - languageCodeLength - 1 >= 0);

Completed in 5195 milliseconds

1 2 3 4 5 6 7