code cleanup: core modules

This commit is contained in:
Dmitry Jemerov
2015-07-21 15:41:57 +02:00
parent 6a6f369e5d
commit aa1f6f2252
37 changed files with 62 additions and 65 deletions
@@ -18,7 +18,7 @@ package org.jetbrains.kotlin.storage
import java.util.concurrent.ConcurrentMap
public trait StorageManager {
public interface StorageManager {
/**
* Given a function compute: K -> V create a memoized version of it that computes a value only once for each key
* @param compute the function to be memoized
@@ -16,19 +16,19 @@
package org.jetbrains.kotlin.storage
public trait MemoizedFunctionToNotNull<P, R : Any> : Function1<P, R> {
public interface MemoizedFunctionToNotNull<P, R : Any> : Function1<P, R> {
public fun isComputed(key: P): Boolean
}
public trait MemoizedFunctionToNullable<P, R : Any> : Function1<P, R?> {
public interface MemoizedFunctionToNullable<P, R : Any> : Function1<P, R?> {
public fun isComputed(key: P): Boolean
}
public trait NotNullLazyValue<T : Any> : Function0<T> {
public interface NotNullLazyValue<T : Any> : Function0<T> {
public fun isComputed(): Boolean
}
public trait NullableLazyValue<T : Any> : Function0<T?> {
public interface NullableLazyValue<T : Any> : Function0<T?> {
public fun isComputed(): Boolean
}