All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.fehmicansaglam.tepkin.api.options.CountOptions.scala Maven / Gradle / Ivy

There is a newer version: 0.5
Show newest version
package net.fehmicansaglam.tepkin.api.options

case class CountOptions(limit: Option[Int],
                        skip: Option[Int])

object CountOptions {

  class Builder {
    private var limit: Option[Int] = None
    private var skip: Option[Int] = None

    def limit(limit: Integer): Builder = {
      this.limit = Some(limit)
      this
    }

    def skip(skip: Integer): Builder = {
      this.skip = Some(skip)
      this
    }

    def build(): CountOptions = CountOptions(limit, skip)
  }

  def builder(): Builder = new Builder()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy