Packages

object Cache

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class CacheKey(date: LocalDate, center: Position) extends Product with Serializable

    Cache key for obtaining record

    Cache key for obtaining record

    date

    local date for UTC

    center

    rounded geo coordinates

  2. final case class Position(latitude: Float, longitude: Float) extends Product with Serializable

    Class to represent geographical coordinates

    Class to represent geographical coordinates

    latitude

    place's latitude

    longitude

    places's longitude

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. def dayEndEpoch(date: LocalDate): Timestamp

    date

    local date for UTC

    returns

    unix timestamp of the provided day's end

  7. def dayStartEpoch(date: LocalDate): Timestamp

    date

    local date for UTC

    returns

    unix timestamp of the provided day's start

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def eventToCacheKey(dateTime: ZonedDateTime, position: Position, geoPrecision: Int): CacheKey

    Round position and timestamp (event) to produce cache key

    Round position and timestamp (event) to produce cache key

    dateTime

    zoned datetime

    position

    latitude & longitude

    geoPrecision

    nth part of 1 to which latitude and longitude will be rounded

    returns

    cache key

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def init[F[_], W <: WeatherResponse](size: Int, geoPrecision: Int)(implicit arg0: Functor[F], CLM: CreateLruMap[F, CacheKey, Either[WeatherError, W]]): F[Cache[F, W]]

    Factory method to create a cache.

    Factory method to create a cache.

    size

    resulting cache's size

    geoPrecision

    nth part of 1 to which latitude and longitude will be rounded when making requests to the cache

    returns

    a cache of WeatherResponse wrapped in a F

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def roundCoordinate(coordinate: Float, geoPrecision: Int): Float

    Round coordinate by geoPrecision Scale value to tenths to prevent values to be long like 1.333334

    Round coordinate by geoPrecision Scale value to tenths to prevent values to be long like 1.333334

    coordinate

    latitude or longitude

    returns

    rounded coordinate

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped