public LocalVariable buildKeyEncoding ( CodeAssembler assembler , OrderedProperty < S > [ ] properties , LocalVariable instanceVar , Class < ? > adapterInstanceClass , boolean useReadMethods , LocalVariable partialStartVar , LocalVariable partialEndVar ) throws SupportException { properties = ensureKeyProperties ( properties ) ; return buildEncoding ( Mode . KEY , assembler , extractProperties ( properties ) , extractDirections ( properties ) , instanceVar , adapterInstanceClass , useReadMethods , - 1 , // no generation support partialStartVar , partialEndVar ) ; }
Generates bytecode instructions to encode properties . The encoding is suitable for key encoding which means it is correctly comparable .