PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/razpub/src/razie/assets/Referenceable.scala

http://razpub.googlecode.com/
Scala | 26 lines | 10 code | 3 blank | 13 comment | 0 complexity | 27f2d91d79c762efa1862d8ded0e7ba0 MD5 | raw file
 1/**
 2 * Razvan's public code. 
 3 * Copyright 2008 based on Apache license (share alike) see LICENSE.txt for details.
 4 */
 5package razie.assets
 6
 7/** Referenceable instances have a unique key 
 8 * 
 9 * @deprecated use Referenceable instead?
10 */
11trait IReferenceable {
12    def key : AssetKey
13    def getKey() : AssetKey // TODO inline
14}
15
16/** Referenceable instances have a unique key 
17 * 
18 * @deprecated use Referenceable instead?
19 */
20trait Referenceable extends IReferenceable {
21    def getKey() : AssetKey = key // TODO inline
22}
23
24/** simple Referenceable concrete/implementation */
25class ReferenceableImpl (val key : AssetKey) extends Referenceable {
26}