Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 17 jdk.internal.le.jmod - Internal Line Editing Module
JDK 17 jdk.internal.le.jmod is the JMOD file for JDK 17 Internal Line Editing module.
JDK 17 Internal Line Editing module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.internal.le.jmod.
JDK 17 Internal Line Editing module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Internal Line Editing module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.internal.le.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/org/jline/terminal/Size.java
/*
* Copyright (c) 2002-2018, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* https://opensource.org/licenses/BSD-3-Clause
*/
package jdk.internal.org.jline.terminal;
public class Size {
private int rows;
private int cols;
public Size() {
}
public Size(int columns, int rows) {
this();
setColumns(columns);
setRows(rows);
}
public int getColumns() {
return cols;
}
public void setColumns(int columns) {
cols = (short) columns;
}
public int getRows() {
return rows;
}
public void setRows(int rows) {
this.rows = (short) rows;
}
/**
* A cursor position combines a row number with a column position.
* <p>
* Note each row has {@code col+1} different column positions,
* including the right margin.
* </p>
*
* @param col the new column
* @param row the new row
* @return the cursor position
*/
public int cursorPos(int row, int col) {
return row * (cols+1) + col;
}
public void copy(Size size) {
setColumns(size.getColumns());
setRows(size.getRows());
}
@Override
public boolean equals(Object o) {
if (o instanceof Size) {
Size size = (Size) o;
return rows == size.rows && cols == size.cols;
} else {
return false;
}
}
@Override
public int hashCode() {
return rows * 31 + cols;
}
@Override
public String toString() {
return "Size[" + "cols=" + cols + ", rows=" + rows + ']';
}
}
⏎ jdk/internal/org/jline/terminal/Size.java
Or download all of them as a single archive file:
File name: jdk.internal.le-17.0.5-src.zip File size: 231458 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.internal.opt.jmod - Internal Opt Module
⇐ JDK 17 jdk.internal.jvmstat.jmod - Internal JVM Stat Module
2023-08-25, ≈40🔥, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
How to compare performances of various XML parsers with the jaxp\SourceValidator.jav aprovided in th...
XML Serializer, Release 2.7.1, allows you to write out XML, HTML etc. as a stream of characters from...
JDK 17 jdk.internal.le.jmod is the JMOD file for JDK 17 Internal Line Editing module. JDK 17 Interna...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...