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

xyz.stratalab.node.models.CurrentKnownHostsResValidator.scala Maven / Gradle / Ivy

The newest version!
package xyz.stratalab.node.models

object CurrentKnownHostsResValidator extends scalapb.validate.Validator[xyz.stratalab.node.models.CurrentKnownHostsRes] {
  def validate(input: xyz.stratalab.node.models.CurrentKnownHostsRes): scalapb.validate.Result =
    scalapb.validate.Result.repeated(input.hotHosts.iterator) { _value =>
      xyz.stratalab.node.models.KnownHostValidator.validate(_value)
    } &&
    scalapb.validate.Result.repeated(input.warmHosts.iterator) { _value =>
      xyz.stratalab.node.models.KnownHostValidator.validate(_value)
    } &&
    scalapb.validate.Result.repeated(input.coldHosts.iterator) { _value =>
      xyz.stratalab.node.models.KnownHostValidator.validate(_value)
    }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy