Top Inners Constructors Methods
kotlin.reflect.jvm.internal

public Class ReflectProperties

extends Object
Class Inheritance
Imports
kotlin.jvm.functions.Function0, org.jetbrains.annotations.NotNull, .Nullable, java.lang.ref.SoftReference

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public abstract static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <T> @NotNull ReflectProperties.LazySoftVal<T>
lazySoft(T initialValue, @NotNull kotlin.jvm.functions.Function0<T> initializer)

public static <T> @NotNull ReflectProperties.LazySoftVal<T>
lazySoft(@NotNull kotlin.jvm.functions.Function0<T> initializer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ReflectPropertiesback to summary
public ReflectProperties()

Method Detail

lazySoftback to summary
public static <T> @NotNull ReflectProperties.LazySoftVal<T> lazySoft(T initialValue, @NotNull kotlin.jvm.functions.Function0<T> initializer)
Annotations
@NotNull
lazySoftback to summary
public static <T> @NotNull ReflectProperties.LazySoftVal<T> lazySoft(@NotNull kotlin.jvm.functions.Function0<T> initializer)
Annotations
@NotNull
kotlin.reflect.jvm.internal back to summary

public Class ReflectProperties.LazySoftVal<T>

extends ReflectProperties.Val<T>
implements kotlin.jvm.functions.Function0<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final kotlin.jvm.functions.Function0<T>
private volatile SoftReference<Object>

Constructor Summary

AccessConstructor and Description
public
LazySoftVal(T initialValue, @NotNull kotlin.jvm.functions.Function0<T> initializer)

Method Summary

Modifier and TypeMethod and Description
public T
Inherited from kotlin.reflect.jvm.internal.ReflectProperties.Val:
escapegetValueunescape

Field Detail

initializerback to summary
private final kotlin.jvm.functions.Function0<T> initializer
valueback to summary
private volatile SoftReference<Object> value

Constructor Detail

LazySoftValback to summary
public LazySoftVal(T initialValue, @NotNull kotlin.jvm.functions.Function0<T> initializer)

Method Detail

invokeback to summary
public T invoke()

Implements abstract kotlin.reflect.jvm.internal.ReflectProperties.Val.invoke.

Annotations
@Override
kotlin.reflect.jvm.internal back to summary

public abstract Class ReflectProperties.Val<T>

extends Object
Class Inheritance
Known Direct Subclasses
kotlin.reflect.jvm.internal.ReflectProperties.LazySoftVal

Field Summary

Modifier and TypeField and Description
private static final Object

Constructor Summary

AccessConstructor and Description
public
Val()

Method Summary

Modifier and TypeMethod and Description
protected Object
escape(T value)

public final T
getValue(Object instance, Object metadata)

public abstract T
protected T
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NULL_VALUEback to summary
private static final Object NULL_VALUE

Constructor Detail

Valback to summary
public Val()

Method Detail

escapeback to summary
protected Object escape(T value)
getValueback to summary
public final T getValue(Object instance, Object metadata)
Annotations
@SuppressWarnings:UnusedParameters, unused
invokeback to summary
public abstract T invoke()
unescapeback to summary
protected T unescape(Object value)
Annotations
@SuppressWarnings:unchecked