samples/effectivelist/src/org/apidesign/effectivelist/Listable.scala
changeset 402 e25dbfce40e9
child 403 ebe08056c60c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/effectivelist/src/org/apidesign/effectivelist/Listable.scala	Fri Aug 31 20:16:57 2012 +0200
     1.3 @@ -0,0 +1,9 @@
     1.4 +package org.apidesign.effectivelist
     1.5 +
     1.6 +/** A member of a {@link List} that makes keeping references
     1.7 + * to previous and next items in the list effective.
     1.8 + */
     1.9 +trait Listable[T <: Listable[T]] {
    1.10 +  private[effectivelist] var prev : T = _
    1.11 +  private[effectivelist] var next : T = _
    1.12 +}