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


< > BotCompany Repo | #1033092 - toByteIterator

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

Libraryless. Click here for Pure Java version (3875L/22K).

static Iterator<Byte> toByteIterator(O o) {
  if (o == null) null;
  if (o cast Iterator) ret o;
  if (o cast Iterable) ret iterator(o);
  if (o cast byte[]) ret iterator(wrapPrimitiveArrayAsImmutableList(o));

Author comment

Began life as a copy of #1033091

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033092
Snippet name: toByteIterator
Eternal ID of this version: #1033092/5
Text MD5: 842448547b49a545f57d3a12d6355126
Transpilation MD5: 2bb14d977f1af3311ce9564c4ae872b8
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-14 04:31:58
Source code size: 227 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 9 / 30
Version history: 4 change(s)
Referenced in: [show references]