Skip to content

Commit

Permalink
add "data type" #240
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed Sep 5, 2022
1 parent 9cfee5f commit 00b48c1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lphy/doc/types/Boolean.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Boolean
-------

The [Boolean](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html) wraps a boolean value, such as true or false.
The [Boolean](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html) data type wraps a boolean value, such as true or false.

2 changes: 1 addition & 1 deletion lphy/doc/types/Double[].md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Double[]
--------

The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) array.
The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) data type array.

2 changes: 1 addition & 1 deletion lphy/doc/types/Double[][].md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Double[][]
----------

The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) 2-d array.
The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) data type 2-d array.

2 changes: 1 addition & 1 deletion lphy/doc/types/Integer[].md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Integer[]
---------

The [Integer](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html) array.
The [Integer](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html) data type array.

14 changes: 7 additions & 7 deletions lphy/src/main/java/lphy/doc/GeneratorMarkdown.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,23 @@ static String generateSequenceTypeMarkdown() {

private static String getTypeDescription(String name) {
return switch (name) {
case "Boolean" -> "The [Boolean](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html) wraps a boolean value, such as true or false.";
case "Boolean" -> "The [Boolean](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html) data type wraps a boolean value, such as true or false.";
case "Boolean[]" -> "The [Boolean](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html) array.";
case "Double" -> "The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) data type wraps a real number, such as 0.1.";
case "Double[]" -> "The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) array.";
case "Double[][]" -> "The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) 2-d array.";
case "Double[]" -> "The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) data type array.";
case "Double[][]" -> "The [Double](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Double.html) data type 2-d array.";
case "Integer" -> "The [Integer](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html) data type wraps an integer number, such as 1.";
case "Integer[]" -> "The [Integer](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html) array.";
case "Integer[][]" -> "The [Integer](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html) 2-d array.";
case "Integer[]" -> "The [Integer](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html) data type array.";
case "Integer[][]" -> "The [Integer](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html) data type 2-d array.";
case "Number" -> "The [Number](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Number.html) is the superclass of data type wrapping numeric values, such as Double or Integer.";
case "Number[]" -> "The [Number](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Number.html) data type array.";
case "Number[][]" -> "The [Number](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Number.html) data type 2-d array.";
case "Object" -> "It could be any data type or class.";
case "Object[]" -> "The Object array.";
case "Object[][]" -> "The Object 2-d array.";
case "String" -> "The [String](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html) data type represents character strings, such as \"lphy\".";
case "String[]" -> "The [String](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html) array.";
case "String[][]" -> "The [String](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html) 2-d array.";
case "String[]" -> "The [String](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html) data type array.";
case "String[][]" -> "The [String](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html) data type 2-d array.";
default -> "";
};
}
Expand Down

0 comments on commit 00b48c1

Please sign in to comment.