author | Jaroslav Tulach <jtulach@netbeans.org> |
Sun, 02 Sep 2012 22:00:13 +0200 | |
changeset 403 | ebe08056c60c |
parent 402 | e25dbfce40e9 |
child 405 | 87bcc647df63 |
permissions | -rw-r--r-- |
jtulach@402 | 1 |
package org.apidesign.effectivelist |
jtulach@402 | 2 |
|
jtulach@402 | 3 |
/** A member of a {@link List} that makes keeping references |
jtulach@402 | 4 |
* to previous and next items in the list effective. |
jtulach@402 | 5 |
*/ |
jtulach@403 | 6 |
// BEGIN: effectivelist.item |
jtulach@402 | 7 |
trait Listable[T <: Listable[T]] { |
jtulach@402 | 8 |
private[effectivelist] var prev : T = _ |
jtulach@402 | 9 |
private[effectivelist] var next : T = _ |
jtulach@402 | 10 |
} |
jtulach@403 | 11 |
// END: effectivelist.item |