Class OkHttpProperties.CacheProperties

  • Enclosing class:
    OkHttpProperties

    public static class OkHttpProperties.CacheProperties
    extends java.lang.Object
    See Also:
    Cache
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheProperties()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.io.File getDirectory()
      The path of the directory where the cache should be stored.
      DataSize getMaxSize()
      The maximum number of bytes this cache should use to store.
      int hashCode()  
      boolean isEnabled()  
      void setDirectory​(java.io.File directory)
      The path of the directory where the cache should be stored.
      void setEnabled​(boolean enabled)  
      void setMaxSize​(DataSize maxSize)
      The maximum number of bytes this cache should use to store.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CacheProperties

        public CacheProperties()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • getMaxSize

        public DataSize getMaxSize()
        The maximum number of bytes this cache should use to store.
      • getDirectory

        public java.io.File getDirectory()
        The path of the directory where the cache should be stored.
      • setEnabled

        public void setEnabled​(boolean enabled)
      • setMaxSize

        public void setMaxSize​(DataSize maxSize)
        The maximum number of bytes this cache should use to store.
      • setDirectory

        public void setDirectory​(java.io.File directory)
        The path of the directory where the cache should be stored.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object