final class StateCache extends AnyRef
Cache that holds the state associated to each loaded build.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StateCache
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addIfMissing(from: AbsolutePath, computeBuild: (AbsolutePath) ⇒ Task[State]): Task[State]
Returns the state associated to
from
, or the result ofcomputeBuild
otherwise.Returns the state associated to
from
, or the result ofcomputeBuild
otherwise. If the state was absent, the cache is updated.- from
Where the build is loaded from.
- computeBuild
A function that computes the state from a location.
- returns
The state associated with
from
, or the newly computed state.
-
def
allStates: Iterator[State]
All the states contained in this cache.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getStateFor(path: AbsolutePath): Option[State]
Gets the state associated to the build loaded from
path
.Gets the state associated to the build loaded from
path
.- path
The path from which the build comes.
- returns
The cached
State
wrapped in anOption
.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
updateBuild(state: State): State
Updates the cache with
state
.Updates the cache with
state
.- state
The state to put in the cache.
- returns
The updated
State
.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )