Primitive Type | Guava Utilities |
byte | Bytes, SignedBytes, UnsignedBytes |
short | Shorts |
int | Ints, UnsignedInteger, UnsignedInts |
lon |
Method | Description |
count(E) | Co |
ByteStreams | Char |
Signature | Description | Equivalent |
put(K, V) | Adds an association from the key to the value | multim |
Key-Value Map Impl | Value-Key Map Impl | Corresponding BiMap |
示例
public int compareTo(Foo that) { return ComparisonChain.start() .compare(this.aString, that.aString) .compare(this.anInt, that.anInt) .compare(this.anEnum, that.anEnu