Libraryless. Click here for Pure Java version (2850L/18K).
// Note: Identity based on globalID, so eq(new SymVar("a"), new SymVar("a")) is FALSE. sclass SymVar > HasGlobalID { S name; *() {} *(S *name) {} public bool equals(O o) { ret o instanceof IHasGlobalID && eqHasGlobalID(this, (IHasGlobalID) o); } public int hashCode() { ret _hashCode(globalID); } toString { ret "SymVar" + (nempty(name) ? " " + name : "") + "[" + globalID() + "]"; } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027874 |
Snippet name: | SymVar - symbolic variable [object identity/global ID based equality] |
Eternal ID of this version: | #1027874/9 |
Text MD5: | cbe2fac8a311e6d7013f956b91ac5f2c |
Transpilation MD5: | 05cfb621e741eb2a3e01c411abbe9731 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-13 21:32:26 |
Source code size: | 417 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 286 / 631 |
Version history: | 8 change(s) |
Referenced in: | #1028440 - JavaTypeSymVar - Java-typed symbolic variable #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |