samples/effectivelist/src/org/apidesign/effectivelist/Listable.scala
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 20:46:27 +0100
changeset 408 9a439a79c6d0
parent 403 ebe08056c60c
permissions -rw-r--r--
Use scala 2.10.4 to compile on JDK8
     1 package org.apidesign.effectivelist
     2 
     3 /** A member of a {@link List} that makes keeping references
     4  * to previous and next items in the list effective.
     5  */
     6 // BEGIN: effectivelist.item
     7 trait Listable[T] {
     8   private[effectivelist] var prev : T = _
     9   private[effectivelist] var next : T = _
    10 }
    11 // END: effectivelist.item