Class UserList<K,​V extends UserListEntry<K>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File file  
      private static com.google.gson.Gson GSON  
      protected static org.apache.logging.log4j.Logger LOGGER  
      private java.util.Map<java.lang.String,​V> map  
    • Constructor Summary

      Constructors 
      Constructor Description
      UserList​(java.io.File p_i1144_1_)  
    • Field Detail

      • LOGGER

        protected static final org.apache.logging.log4j.Logger LOGGER
      • GSON

        private static final com.google.gson.Gson GSON
      • file

        private final java.io.File file
      • map

        private final java.util.Map<java.lang.String,​V extends UserListEntry<K>> map
    • Constructor Detail

      • UserList

        public UserList​(java.io.File p_i1144_1_)
    • Method Detail

      • getFile

        public java.io.File getFile()
      • add

        public void add​(V p_152687_1_)
      • get

        @Nullable
        public V get​(K p_152683_1_)
      • remove

        public void remove​(K p_152684_1_)
      • getUserList

        public java.lang.String[] getUserList()
      • isEmpty

        public boolean isEmpty()
      • getKeyForUser

        protected java.lang.String getKeyForUser​(K p_152681_1_)
      • contains

        protected boolean contains​(K p_152692_1_)
      • removeExpired

        private void removeExpired()
      • createEntry

        protected abstract UserListEntry<K> createEntry​(com.google.gson.JsonObject p_152682_1_)
      • getEntries

        public java.util.Collection<V> getEntries()
      • save

        public void save()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public void load()
                  throws java.io.IOException
        Throws:
        java.io.IOException