Class NestUtil

java.lang.Object
com.sk89q.commandbook.util.NestUtil

public class NestUtil
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    NestUtil()  
  • Method Summary

    Modifier and Type Method Description
    static <T,​ V> java.util.List<V> getNestedList​(java.util.Map<T,​java.util.List<V>> source, T key)  
    static <T,​ K,​ V> java.util.Map<K,​V> getNestedMap​(java.util.Map<T,​java.util.Map<K,​V>> source, T key)  
    static <T,​ V> java.util.Set<V> getNestedSet​(java.util.Map<T,​java.util.Set<V>> source, T key)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getNestedMap

      public static <T,​ K,​ V> java.util.Map<K,​V> getNestedMap​(java.util.Map<T,​java.util.Map<K,​V>> source, T key)
    • getNestedSet

      public static <T,​ V> java.util.Set<V> getNestedSet​(java.util.Map<T,​java.util.Set<V>> source, T key)
    • getNestedList

      public static <T,​ V> java.util.List<V> getNestedList​(java.util.Map<T,​java.util.List<V>> source, T key)