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

com.eharmony.aloha.models.TopLevelModel.scala Maven / Gradle / Ivy

The newest version!
package com.eharmony.aloha.models

import java.{util => ju}

import com.eharmony.aloha.id.ModelIdentity

import scala.collection.JavaConversions.seqAsJavaList

case class TopLevelModel[-A, +B](model: Model[A, B], fields: Seq[String]) extends Model[A, B] {
  def modelId: ModelIdentity = model.modelId
  def getFieldList: ju.List[String] = seqAsJavaList(fields)
  override def apply(a: A): B = model(a)
  override def close(): Unit = ()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy