Class CachedConfigValue<T>

    • Field Detail

      • cachedValue

        @Nullable
        protected T cachedValue
      • parsedTime

        protected long parsedTime
    • Constructor Detail

      • CachedConfigValue

        protected CachedConfigValue​(@NotNull
                                    @NotNull ValueManifest<T> manifest)
    • Method Detail

      • updateCache

        protected T updateCache​(T value)
      • getCachedValue

        @Nullable
        public T getCachedValue()
      • isExpired

        public boolean isExpired()
      • getDefaultFirst

        protected final T getDefaultFirst​(@Nullable
                                          T value)
      • getCachedOrDefault

        @Nullable
        protected T getCachedOrDefault()
      • getCachedOrDefault

        @Contract("!null->!null")
        protected T getCachedOrDefault​(@Nullable
                                       T emptyValue)