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

16
LINES

< > BotCompany Repo | #1033119 // AbstractMatrix

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

Libraryless. Click here for Pure Java version (8582L/48K).

1  
persistable asclass AbstractMatrix<A> is Matrix<A> {
2  
  int w, h;
3  
4  
  *(int *w, int *h) {}
5  
6  
  public int getWidth() { ret w; }
7  
  public int getHeight() { ret h; }
8  
  
9  
  toString {
10  
    ret flexLines(
11  
      roundBracket(w+"x"+h),
12  
      countIteratorToList(y -> str(getLine(y)), getHeight()));
13  
  }
14  
  
15  
  public void set(int x, int y, A a) { unimplemented(); }
16  
}

Author comment

Began life as a copy of #1033112

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033119
Snippet name: AbstractMatrix
Eternal ID of this version: #1033119/8
Text MD5: 97db7d1892a9285701543b2f8697fc90
Transpilation MD5: e86c843e90dc979e90cd7239fe43f1e6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-20 20:20:54
Source code size: 369 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 168 / 290
Version history: 7 change(s)
Referenced in: [show references]