package Ġorg . know ledger . ledger . storage . serial Ċ Ċ import Ġkotlinx . serialization . Experimental Serialization Api Ċ import Ġkotlinx . serialization . K Serializer Ċ import Ġkotlinx . serialization . Serializer Ċ import Ġkotlinx . serialization . builtins . List Serializer Ċ import Ġkotlinx . serialization . descriptors . Serial Descriptor Ċ import Ġkotlinx . serialization . encoding . Decoder Ċ import Ġkotlinx . serialization . encoding . Encoder Ċ import Ġorg . know ledger . collections . Sort edList Ċ import Ġorg . know ledger . collections . to Sort edList From Pre Sorted Ċ Ċ @ Opt In ( Experimental Serialization Api :: class ) Ċ @ Serializer ( for Class Ġ= ĠSort edList :: class ) Ċ class ĠSort edList Serializer < T Ġ: ĠComparable < T >>( ĊĠĠĠ Ġvalue Serializer : ĠK Serializer < T > Ċ ) Ġ: ĠK Serializer < Sort edList < T >> Ġ{ ĊĠĠĠ Ġprivate Ġval Ġdelegate : ĠK Serializer < List < T >> Ġ= ĠList Serializer ( value Serializer ) ĊĊĠĠĠ Ġoverride Ġval Ġdescriptor : ĠSerial Descriptor Ġget () Ġ= Ġdelegate . descriptor ĊĊĠĠĠ Ġoverride Ġfun Ġdeserialize ( decoder : ĠDecoder ): ĠSort edList < T > Ġ= ĊĠĠĠĠĠĠĠ Ġdelegate . deserialize ( decoder ). to Sort edList From Pre Sorted () ĊĊĠĠĠ Ġoverride Ġfun Ġserialize ( encoder : ĠEncoder , Ġvalue : ĠSort edList < T >) Ġ{ ĊĠĠĠĠĠĠĠ Ġdelegate . serialize ( encoder , Ġvalue ) ĊĠĠĠ Ġ} Ċ Ċ }