package Ġnet . cord a . serialization . dj vm Ċ Ċ import Ġnet . cord a . core . internal . object Or New Instance Ċ import Ġnet . cord a . core . serialization . Serialization Context Ċ import Ġnet . cord a . core . serialization . Serialization Whitelist Ċ import Ġnet . cord a . dj vm . rew iring . Sandbox ClassLoader Ċ import Ġnet . cord a . serialization . dj vm . de serializers . Merge Wh itel ists Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Bit Set Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Cert Path Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Character Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Collection Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Cor D app Custom Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Currency Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Decimal 1 2 8 Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Decimal 3 2 Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Decimal 6 4 Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Duration Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Enum Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Enum Set Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox InputStream Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Instant Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox LocalDate Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox LocalDateTime Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Local Time Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Map Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Month Day Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Offset DateTime Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Offset Time Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Opaque Bytes Sub Sequence Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Optional Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Period Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Primitive Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox PublicKey Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Symbol Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox ToString Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Unsigned Byte Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Unsigned Integer Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Unsigned Long Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Unsigned Short Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox X 5 0 9 CRL Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox X 5 0 9 Certificate Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Year Month Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Year Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Zone Id Serializer Ċ import Ġnet . cord a . serialization . dj vm . serializers . Sandbox Z onedDateTime Serializer Ċ import Ġnet . cord a . serialization . internal . Serialization Scheme Ċ import Ġnet . cord a . serialization . internal . amqp . Serializer Factory Ċ import Ġnet . cord a . serialization . internal . amqp . Serializer Factory Factory Ċ import Ġnet . cord a . serialization . internal . amqp . addTo Whitelist Ċ import Ġjava . math . BigDecimal Ċ import Ġjava . math . BigInteger Ċ import Ġjava . util . Date Ċ import Ġjava . util . UUID Ċ import Ġjava . util . function . Function Ċ import Ġjava . util . function . Predicate Ċ Ċ class ĠSandbox Serialization Scheme Builder ( ĊĠĠĠ Ġprivate Ġval Ġclass Loader : ĠSandbox ClassLoader , ĊĠĠĠ Ġprivate Ġval Ġsandbox Basic Input : ĠFunction < in ĠAny ?, Ġout ĠAny ? >, ĊĠĠĠ Ġprivate Ġval Ġraw Task Factory : ĠFunction < in ĠAny , Ġout ĠFunction < in ĠAny ?, Ġout ĠAny ? >>, ĊĠĠĠ Ġprivate Ġval Ġtask Factory : ĠFunction < Class < out ĠFunction < *, Ġ* >>, Ġout ĠFunction < in ĠAny ?, Ġout ĠAny ? >>, ĊĠĠĠ Ġprivate Ġval Ġpredicate Factory : ĠFunction < Class < out ĠPredicate <* >>, Ġout ĠPredicate < in ĠAny ? >>, ĊĠĠĠ Ġprivate Ġval Ġcustom Serializer ClassNames : ĠSet < String >, ĊĠĠĠ Ġprivate Ġval Ġserialization Whitelist Names : ĠSet < String >, ĊĠĠĠ Ġprivate Ġval Ġserializer Factory Factory : ĠSerializer Factory Factory Ċ ) Ġ{ ĊĠĠĠ Ġfun Ġbuild For ( context : ĠSerialization Context ): ĠSerialization Scheme Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠAMQP Serialization Scheme ( get Serializer Factory ( context )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġget Serializer Factory ( context : ĠSerialization Context ): ĠSerializer Factory Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġserializer Factory Factory . make ( context ). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Bit Set Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Cert Path Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Duration Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Enum Set Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox InputStream Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Instant Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox LocalDate Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox LocalDateTime Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Local Time Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Month Day Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Offset DateTime Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Offset Time Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Period Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Year Month Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Year Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Z onedDateTime Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Zone Id Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Opaque Bytes Sub Sequence Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Optional Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( UUID :: class . java , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( String :: class . java , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Byte :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Short :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Int :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Long :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Float :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Double :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Boolean :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Primitive Serializer ( Date :: class . java ObjectType , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Character Serializer ( class Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Collection Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Map Serializer ( class Loader , Ġtask Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Enum Serializer ( class Loader , Ġtask Factory , Ġpredicate Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox PublicKey Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox ToString Serializer ( BigDecimal :: class . java , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox ToString Serializer ( BigInteger :: class . java , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox ToString Serializer ( StringBuffer :: class . java , Ġclass Loader , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Currency Serializer ( class Loader , Ġtask Factory , Ġsandbox Basic Input )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox X 5 0 9 Certificate Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox X 5 0 9 CRL Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Unsigned Long Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Unsigned Integer Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Unsigned Short Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Unsigned Byte Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Decimal 1 2 8 Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Decimal 6 4 Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Decimal 3 2 Serializer ( class Loader , Ġtask Factory )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Symbol Serializer ( class Loader , Ġtask Factory , Ġsandbox Basic Input )) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġfor Ġ( custom Serializer Name Ġin Ġcustom Serializer ClassNames ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġregister ( Sandbox Cor D app Custom Serializer ( custom Serializer Name , Ġclass Loader , Ġraw Task Factory , Ġthis )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġregister Wh itel ists ( task Factory , Ġthis ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġregister Wh itel ists ( ĊĠĠĠĠĠĠĠ Ġtask Factory : ĠFunction < Class < out ĠFunction < *, Ġ* >>, Ġout ĠFunction < in ĠAny ?, Ġout ĠAny ? >>, ĊĠĠĠĠĠĠĠ Ġfactory : ĠSerializer Factory ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( serialization Whitelist Names . isEmpty ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġserialization Wh itel ists Ġ= Ġserialization Whitelist Names . map Ġ{ Ġwhitelist Class Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclass Loader . to Sandbox Class ( whitelist Class ). kotlin . object Or New Instance () ĊĠĠĠĠĠĠĠ Ġ}. toArray Of ( class Loader . to Sandbox Class ( Serialization Whitelist :: class . java )) ĊĠĠĠĠĠĠĠ Ġ@ Suppress (" unchecked _ cast ") ĊĠĠĠĠĠĠĠ Ġval Ġmerge Task Ġ= Ġtask Factory . apply ( Merge Wh itel ists :: class . java ) Ġas ĠFunction < in ĠArray <* >, Ġout ĠArray < Class <* >>> ĊĠĠĠĠĠĠĠ Ġfactory . addTo Whitelist ( merge Task . apply ( serialization Wh itel ists ). toSet ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Suppress (" PLATFORM _ CLASS _ MAP PED _ TO _ K OT LIN ") ĊĠĠĠ Ġprivate Ġfun ĠCollection <* >. toArray Of ( type : ĠClass < *> ): ĠArray < *> Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtyped Array Ġ= Ġjava . lang . reflect . Array . newInstance ( type , Ġ 0 ) Ġas ĠArray < *> ĊĠĠĠĠĠĠĠ Ġreturn Ġ( this Ġas Ġjava . util . Collection < *> ). toArray ( typed Array ) ĊĠĠĠ Ġ} Ċ } Ċ