public class MapBuilder<A,B> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MapBuilder.Entry<A,B>
Represents a pair of key and value of a map builder.
|
| Constructor and Description |
|---|
MapBuilder() |
MapBuilder(Collection<MapBuilder.Entry<? extends A,? extends B>> collection) |
MapBuilder(Map<? extends A,? extends B> map) |
| Modifier and Type | Method and Description |
|---|---|
List<MapBuilder.Entry<A,B>> |
entries() |
static <A,B> MapBuilder.Entry<A,B> |
entry(A a,
B b) |
boolean |
isEmpty() |
static <A,B> boolean |
isEmpty(MapBuilder<A,B> builder)
Checks if a map builder is null or empty.
|
List<A> |
keys() |
Map<A,B> |
map() |
MapBuilder<A,B> |
put(A key,
B value) |
String |
toString() |
List<B> |
values() |
public MapBuilder()
public MapBuilder(Collection<MapBuilder.Entry<? extends A,? extends B>> collection)
public MapBuilder<A,B> put(A key, B value)
public List<MapBuilder.Entry<A,B>> entries()
public boolean isEmpty()
public static <A,B> boolean isEmpty(MapBuilder<A,B> builder)
A - key classB - value classbuilder - a builder, can be nullpublic static <A,B> MapBuilder.Entry<A,B> entry(A a, B b)
Copyright © 2023. All rights reserved.