Class UtilsKt
-
- All Implemented Interfaces:
public final class UtilsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static Integersizeprivate final static IntegerjvmVersionprivate final static VaadinRequestcurrentRequestprivate final static VaadinResponsecurrentResponseprivate final static UIcurrentUIprivate final static MockRequestmockprivate final static MockResponsemockprivate final static MockHttpSessionmockprivate final static ServletContextcontextprivate final static BooleanisInitialized
-
Method Summary
Modifier and Type Method Description final IntegergetSize()final IntegergetJvmVersion()final VaadinRequestgetCurrentRequest()final VaadinResponsegetCurrentResponse()final UIgetCurrentUI()final MockRequestgetMock()final MockResponsegetMock()final MockHttpSessiongetMock()final ServletContextgetContext()final BooleangetIsInitialized()final static ByteArrayserializeToBytes(Serializable $self)final static <T extends Serializable> Tdeserialize(ByteArray $self)final static <T extends Serializable> TserializeDeserialize(T $self)final static Unitadd(JsonArray $self, JsonValue value)Adds a value at the end of the array. final static Unitadd(JsonArray $self, String string)Adds a string at the end of the array. final static Unitadd(JsonArray $self, Boolean bool)Adds a bool at the end of the array. final static Unitadd(JsonArray $self, Double number)Adds a number at the end of the array. final static List<JsonValue>toList(JsonArray $self)Returns the contents of this array as an immutable List. final static List<Object>unwrap(List<JsonValue> $self)Unwraps all items in given list. final static Objectunwrap(JsonValue $self)Unwraps this value into corresponding Java type. -
-
Method Detail
-
getJvmVersion
final Integer getJvmVersion()
-
getCurrentRequest
final VaadinRequest getCurrentRequest()
-
getCurrentResponse
final VaadinResponse getCurrentResponse()
-
getCurrentUI
final UI getCurrentUI()
-
getMock
final MockRequest getMock()
-
getMock
final MockResponse getMock()
-
getMock
final MockHttpSession getMock()
-
getContext
final ServletContext getContext()
-
getIsInitialized
final Boolean getIsInitialized()
-
serializeToBytes
final static ByteArray serializeToBytes(Serializable $self)
-
deserialize
final static <T extends Serializable> T deserialize(ByteArray $self)
-
serializeDeserialize
final static <T extends Serializable> T serializeDeserialize(T $self)
-
toList
final static List<JsonValue> toList(JsonArray $self)
Returns the contents of this array as an immutable List. The returned list is a copy and doesn't reflect mutations done in the array.
-
-
-
-