Skip to content

Scala web templates: xylo.collections

Stefan Endrullis edited this page Jun 10, 2019 · 1 revision

This file contains templates related to Scala or Java collections.

General templates:

  • .toList - wraps the element into a List
  • .toSet - wraps the element into a Set
  • .toMap - wraps the element into a Map
  • .toOption - wraps the element into a Option
  • .toSome - wraps the element into a Some

Collection templates:

  • .asJava_import - imports scala.collection.JavaConverters._ and expands to $expr$.asJava
  • .asScala_import - imports scala.collection.JavaConverters._ and expands to $expr$.asScala