Package com.jetbrains.rd.util

Types

Link copied to clipboard
typealias AtomicInteger = java.util.concurrent.atomic.AtomicInteger
Link copied to clipboard
class AtomicReference<T>(initial: T)
Link copied to clipboard
open class BitSlice(val lowBit: Int, val bitCount: Int)
Link copied to clipboard
class Boxed<T>(var value: T)
Link copied to clipboard
typealias Callable<T> = java.util.concurrent.Callable<T>
Link copied to clipboard
Link copied to clipboard
typealias Closeable = java.io.Closeable
Link copied to clipboard
object CommonsLoggingLoggerFactory : ILoggerFactory
Link copied to clipboard
typealias ConcurrentHashMap<K, V> = java.util.concurrent.ConcurrentHashMap<K, V>
Link copied to clipboard
object ConsoleLoggerFactory : ILoggerFactory
Link copied to clipboard
typealias CopyOnWriteArrayList<T> = java.util.concurrent.CopyOnWriteArrayList<T>
Link copied to clipboard
typealias Date = java.util.Date
Link copied to clipboard
typealias EnumSet<T> = java.util.EnumSet<T>
Link copied to clipboard
typealias ExecutionException = java.util.concurrent.ExecutionException
Link copied to clipboard
interface ILoggerFactory
Link copied to clipboard
interface Logger
Link copied to clipboard
enum LogLevel : Enum<LogLevel>
Link copied to clipboard
sealed class Maybe<out T>

Classical Maybe monad

Link copied to clipboard
annotation class PublicApi
Link copied to clipboard
typealias Queue<E> = LinkedBlockingQueue<E>
Link copied to clipboard
sealed class Result<out T>

Classical Result monad

Link copied to clipboard
typealias Runnable = java.lang.Runnable
Link copied to clipboard
class Statics<T : Any>

Globals statics for classes managed in a stack-like way

Link copied to clipboard
class SwitchLogger(category: String) : Logger
Link copied to clipboard
object Sync
Link copied to clipboard
typealias ThreadLocal<T> = java.lang.ThreadLocal<T>
Link copied to clipboard
typealias TimeoutException = java.util.concurrent.TimeoutException
Link copied to clipboard
class TlsBoxed<T>(initialValue: T)
Link copied to clipboard
typealias URI = java.net.URI
Link copied to clipboard
annotation class UsedImplicitly
Link copied to clipboard
typealias UUID = java.util.UUID

Functions

Link copied to clipboard
fun <T> MutableCollection<T>.addUnique(lifetime: Lifetime, value: T)
fun <K, V> MutableMap<K, V>.addUnique(    lifetime: Lifetime,     key: K,     value: V): V
Link copied to clipboard
fun <T : Any> Maybe<T>.asNullable(): T?
Link copied to clipboard
fun <T> ISource<T>.asProperty(defaultValue: T): IPropertyView<T>
Link copied to clipboard
fun assert(value: Boolean)
inline fun assert(value: Boolean, lazyMessage: () -> Any)
Link copied to clipboard
fun <K, V> MutableMap<K, V>.blockingPutUnique(    lf: Lifetime,     lock: Any,     key: K,     value: V)
Link copied to clipboard
inline fun catch(action: () -> Unit)
inline fun Logger.catch(action: () -> Unit)
inline fun catch(comment: String?, action: () -> Unit)
inline fun Logger.catch(comment: String?, action: () -> Unit)
Link copied to clipboard
inline fun catchAndDrop(action: () -> Unit)
Link copied to clipboard
fun <K, V> concurrentMapOf(): MutableMap<K, V>
Link copied to clipboard
fun currentThreadName(): String
Link copied to clipboard
fun <T : Any> IPropertyView<T?>.debounceNotNull(timeout: Duration, scheduler: IScheduler): ISource<T?>
Link copied to clipboard
inline fun Logger.debug(msg: () -> Any?)
Link copied to clipboard
fun defaultLogFormat(    category: String,     level: LogLevel,     message: Any?,     throwable: Throwable?): String
Link copied to clipboard
inline fun <T : Enum<T>> enumSetOf(values: Set<T> = emptySet()): EnumSet<T>
Link copied to clipboard
inline fun Logger.error(msg: () -> Any?)
fun Logger.error(throwable: Throwable)
fun Logger.error(msg: String?, throwable: Throwable)
Link copied to clipboard
fun <TKey, TValue> Map<TKey, TValue>.first(): Map.Entry<TKey, TValue>
Link copied to clipboard
fun <TKey, TValue> Map<TKey, TValue>.firstOrNull(): Map.Entry<TKey, TValue>?
Link copied to clipboard
inline fun <T> TlsBoxed<Boolean>.forbidReentrancy(action: () -> T): T
Link copied to clipboard
inline fun <T> Array<out T>.forEachReversed(action: (T) -> Unit)
Link copied to clipboard
operator fun <T> BitSlice.TypedBitSlice<T>.get(host: AtomicInteger): T
Link copied to clipboard
inline fun <T> getLogger(): Logger
fun getLogger(category: String): SwitchLogger
fun getLogger(categoryKclass: KClass<*>): Logger
Link copied to clipboard
inline fun <K : Any, V : Any> MutableMap<K, V>.getOrCreate(key: K, crossinline creator: (K) -> V): V
Link copied to clipboard
fun Throwable.getThrowableText(): String
Link copied to clipboard
inline fun Logger.info(msg: () -> Any?)
Link copied to clipboard
inline fun <T> Array<T>.insert(elt: T, idx: Int): Array<T>
Link copied to clipboard
fun <K, V> MutableMap<K, V>.keySet(value: V): MutableSet<K>
Link copied to clipboard
inline fun Logger.log(level: LogLevel, msg: () -> Any?)
Link copied to clipboard
fun log2ceil(value: Int): Int
Link copied to clipboard
fun measureTimeMillis(block: () -> Unit): Long
Link copied to clipboard
fun BitSlice?.nextSliceLow(): Int
Link copied to clipboard
inline fun <T : Enum<T>> parseFromFlags(flags: Int): EnumSet<T>
Link copied to clipboard
inline fun <T : Enum<T>> parseFromOrdinal(ordinal: Int): T
Link copied to clipboard
fun ByteArray.parseLong(offset: Int): Long
Link copied to clipboard
fun printlnError(msg: String)
Link copied to clipboard
fun <K, V> MutableMap<K, V>.put(entry: Map.Entry<K, V>): V?
fun <K, V> MutableMap<K, V>.put(    lf: Lifetime,     key: K,     value: V)
Link copied to clipboard
fun ByteArray.putLong(long: Long, offset: Int)
Link copied to clipboard
fun <K, V> MutableMap<K, V>.putUnique(key: K, value: V): V
Link copied to clipboard
fun qualifiedName(kclass: KClass<*>): String
Link copied to clipboard
inline fun <T> Array<T>.remove(elt: T): Array<T>
Link copied to clipboard
fun <T> List<T>?.restOrNull(): List<T>?
Link copied to clipboard
inline fun spinUntil(condition: () -> Boolean)
inline fun spinUntil(timeoutMs: Long, condition: () -> Boolean): Boolean
Link copied to clipboard
fun <T> threadLocalWithInitial(initial: () -> T): ThreadLocal<T>
Link copied to clipboard
fun <T : Any> ISource<T>.throttleLast(timeout: Duration, scheduler: IScheduler): ISource<T>
Link copied to clipboard
inline fun Logger.trace(msg: () -> Any?)
Link copied to clipboard
inline fun <T : Closeable?, R> T.use(block: (T) -> R): R
Link copied to clipboard
fun <T : Enum<T>> EnumSet<T>.values(): Set<T>
Link copied to clipboard
inline fun Logger.warn(msg: () -> Any?)

Properties

Link copied to clipboard
val eol: String