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

9
LINES

< > BotCompany Repo | #1033770 // initIMeta

JavaX fragment (include)

static IMeta initIMeta(O o) {
  if (o == null) null;
  if (o cast IMeta) ret o;
  if (o cast JComponent) ret initMetaOfJComponent(o);
  
  // This is not really used. Try to use BufferedImageWithMeta instead
  if (o cast BufferedImage) ret optCast IMeta(o.getProperty("meta"));
  null;
}

Author comment

Began life as a copy of #1033767

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033770
Snippet name: initIMeta
Eternal ID of this version: #1033770/3
Text MD5: 75786b7af3b7b7e950312ca43764345d
Author: stefan
Category: javax / reasoning
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-13 01:38:27
Source code size: 295 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 193
Version history: 2 change(s)
Referenced in: [show references]