クラス MapBuilder<K,V>

java.lang.ObjectSE
org.springframework.data.cassandra.util.MapBuilder<K,V>
型パラメーター:
K - マップのキー型。
V - マップの値の型。
実装されたすべてのインターフェース:
MapSE<K,V>

public class MapBuilder<K,V> extends ObjectSE implements MapSE<K,V>
マップのビルダー。利便性のために委譲を介して MapSE も実装されているため、実際に build() を実行する必要はありません。
作成者:
Matthew T. Adams, Mark Paluch
  • コンストラクターの詳細

    • MapBuilder

      public MapBuilder()
      新しい MapBuilder を作成します。
    • MapBuilder

      public MapBuilder(MapSE<K,V> source)
      指定されたマップのコピーを使用して新しいインスタンスを作成します。
      パラメーター:
      source - null であってはなりません
  • メソッドの詳細

    • map

      public static MapBuilder<ObjectSE,ObjectSE> map()
      新しい MapBuilder を構築するためのファクトリメソッド。静的にインポートすると便利です。
    • map

      public static <K, V> MapBuilder<K,V> map(ClassSE<K> keyType, ClassSE<V> valueType)
      指定されたキーと値の型を使用して新しいビルダーを構築するファクトリメソッド。静的にインポートすると便利です。
    • map

      public static <K, V> MapBuilder<K,V> map(MapSE<K,V> source)
      指定されたマップの浅いコピーを使用して新しいビルダーを構築するファクトリメソッド。静的にインポートする場合に便利です。
    • entry

      public MapBuilder<K,V> entry(K key, V value)
      このマップにエントリを追加し、this を返します。
      戻り値:
      this
    • build

      public MapSE<K,V> build()
      このビルダーのマップの現在の状態に基づいて新しいマップを返します。
      戻り値:
      このビルダーのマップの現在のコンテンツを含む新しいマップ。
    • size

      public int size()
      次で指定:
      インターフェース MapSE<K,V>size 
    • isEmpty

      public boolean isEmpty()
      次で指定:
      インターフェース MapSE<K,V>isEmpty 
    • containsKey

      public boolean containsKey(ObjectSE key)
      次で指定:
      インターフェース MapSE<K,V>containsKeySE 
    • containsValue

      public boolean containsValue(ObjectSE value)
      次で指定:
      インターフェース MapSE<K,V>containsValueSE 
    • get

      @Nullable public V get(ObjectSE key)
      次で指定:
      インターフェース MapSE<K,V>getSE 
    • put

      public V put(K key, V value)
      次で指定:
      インターフェース MapSE<K,V>putSE 
    • remove

      @Nullable public V remove(ObjectSE key)
      次で指定:
      インターフェース MapSE<K,V>removeSE 
    • putAll

      public void putAll(MapSE<? extends K,? extends V> m)
      次で指定:
      インターフェース MapSE<K,V>putAllSE 
    • clear

      public void clear()
      次で指定:
      インターフェース MapSE<K,V>clear 
    • keySet

      public SetSE<K> keySet()
      次で指定:
      インターフェース MapSE<K,V>keySet 
    • values

      public CollectionSE<V> values()
      次で指定:
      インターフェース MapSE<K,V>values 
    • entrySet

      public SetSE<Map.EntrySE<K,V>> entrySet()
      次で指定:
      インターフェース MapSE<K,V>entrySet 
    • equals

      public boolean equals(@Nullable ObjectSE o)
      次で指定:
      インターフェース MapSE<K,V>equalsSE 
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      次で指定:
      インターフェース MapSE<K,V>hashCode 
      オーバーライド:
      クラス ObjectSEhashCode