Class ConfigurationSerializer<T>


  • public class ConfigurationSerializer<T>
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.Properties getAsProperties​(T object)  
      <T> java.lang.String getAsString​(T object, boolean includeNulls)  
      static <T> T getFromString​(java.lang.String json, java.lang.Class<T> typeParameterClass, boolean includeNulls)  
      FSAConfiguration load​(java.lang.String fileInput)  
      boolean save​(T object, java.lang.String fileOutput, boolean includeNulls)  
      boolean saveYaml​(T object, java.lang.String fileOutput)  
      • Methods inherited from class java.lang.Object

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

      • ConfigurationSerializer

        public ConfigurationSerializer()
    • Method Detail

      • load

        public FSAConfiguration load​(java.lang.String fileInput)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • save

        public boolean save​(T object,
                            java.lang.String fileOutput,
                            boolean includeNulls)
      • saveYaml

        public boolean saveYaml​(T object,
                                java.lang.String fileOutput)
      • getAsString

        public <T> java.lang.String getAsString​(T object,
                                                boolean includeNulls)
      • getAsProperties

        public static <T> java.util.Properties getAsProperties​(T object)
      • getFromString

        public static <T> T getFromString​(java.lang.String json,
                                          java.lang.Class<T> typeParameterClass,
                                          boolean includeNulls)