MCPcopy Create free account
hub / github.com/antlr/codebuff / immutableEntry

Method immutableEntry

output/java_guava/1.4.17/Multisets.java:227–229  ·  view source on GitHub ↗

Returns an immutable multiset entry with the specified element and count. The entry will be serializable if e is. @param e the element to be associated with the returned entry @param n the count to be associated with the returned entry @throws IllegalArgumentException if n is negati

(@Nullable E e, int n)

Source from the content-addressed store, hash-verified

225
226
227 public static <E> Multiset.Entry<E> immutableEntry(@Nullable E e, int n) {
228 return new ImmutableEntry<E>(e, n);
229 }
230
231 static class ImmutableEntry<E> extends AbstractEntry<E>
232 implements Serializable {

Callers 12

computeNextMethod · 0.95
applyMethod · 0.95
getEntryMethod · 0.95
toStringMethod · 0.95
computeNextMethod · 0.95
standardFirstEntryMethod · 0.95
standardLastEntryMethod · 0.95
standardPollLastEntryMethod · 0.95
pollFirstEntryMethod · 0.95
pollLastEntryMethod · 0.95
getEntryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected