Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1033157 // CompressionRegime_AnyType

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (35L/1K).

interface CompressionRegime_AnyType<A> {
  byte[] decompressorToBytes(A decompressor);
  A decompressorFromBytes(byte[] compressed);
  
  // return type O to make regime reusable e.g. for elements of lists
  O runDecompressor(A a);
  
  // e.g. full eval check
  CompressionRegime_AnyType<A> fullRegime();
}

Author comment

Began life as a copy of #1033081

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033157
Snippet name: CompressionRegime_AnyType
Eternal ID of this version: #1033157/6
Text MD5: 9af5f109e94f9aa87cb3a8954801a70f
Transpilation MD5: 5aea622ad7aa2fecb8d2b464484554f7
Author: stefan
Category: javax / recognition by compression
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-25 01:02:12
Source code size: 316 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 172 / 292
Version history: 5 change(s)
Referenced in: [show references]