Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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/reader/impl/ReaderUtils.java
/* * Copyright (c) 2002-2020, 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.reader.impl; import jdk.internal.org.jline.reader.LineReader; import jdk.internal.org.jline.utils.Levenshtein; public class ReaderUtils { private ReaderUtils() { } public static boolean isSet(LineReader reader, LineReader.Option option) { return reader != null && reader.isSet(option); } public static String getString(LineReader reader, String name, String def) { Object v = reader != null ? reader.getVariable(name) : null; return v != null ? v.toString() : def; } public static boolean getBoolean(LineReader reader, String name, boolean def) { Object v = reader != null ? reader.getVariable(name) : null; if (v instanceof Boolean) { return (Boolean) v; } else if (v != null) { String s = v.toString(); return s.isEmpty() || s.equalsIgnoreCase("on") || s.equalsIgnoreCase("1") || s.equalsIgnoreCase("true"); } return def; } public static int getInt(LineReader reader, String name, int def) { int nb = def; Object v = reader != null ? reader.getVariable(name) : null; if (v instanceof Number) { return ((Number) v).intValue(); } else if (v != null) { nb = 0; try { nb = Integer.parseInt(v.toString()); } catch (NumberFormatException e) { // Ignore } } return nb; } public static long getLong(LineReader reader, String name, long def) { long nb = def; Object v = reader != null ? reader.getVariable(name) : null; if (v instanceof Number) { return ((Number) v).longValue(); } else if (v != null) { nb = 0; try { nb = Long.parseLong(v.toString()); } catch (NumberFormatException e) { // Ignore } } return nb; } public static int distance(String word, String cand) { if (word.length() < cand.length()) { int d1 = Levenshtein.distance(word, cand.substring(0, Math.min(cand.length(), word.length()))); int d2 = Levenshtein.distance(word, cand); return Math.min(d1, d2); } else { return Levenshtein.distance(word, cand); } } }
⏎ jdk/internal/org/jline/reader/impl/ReaderUtils.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, 3927👍, 0💬
Popular Posts:
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....