Skip to content

Instantly share code, notes, and snippets.

@eguneys
Last active January 8, 2020 12:55
Show Gist options
  • Select an option

  • Save eguneys/e165087f569e598ded9904e9a4d27cdb to your computer and use it in GitHub Desktop.

Select an option

Save eguneys/e165087f569e598ded9904e9a4d27cdb to your computer and use it in GitHub Desktop.

Revisions

  1. eguneys renamed this gist Jan 8, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. eguneys created this gist Jan 8, 2020.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@

    import java.util.concurrent.ConcurrentHashMap
    import scala.jdk.CollectionConverters._


    var masas = new ConcurrentHashMap[Masa.ID, Masa]()

    def publicCreated: List[Masa] = masas.values.asScala.toList