double -> int

This commit is contained in:
Renaud Pawlak 2017-05-05 08:59:48 +02:00
parent f17f03a7e1
commit c6a468998e
2 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ public class String extends def.js.Object implements Iterable<String> {
* The zero-based index of the desired character. If there is no
* character at the specified index, NaN is returned.
*/
native public double charCodeAt(int index);
native public int charCodeAt(int index);
/**
* Returns a string that contains the concatenation of two or more strings.
@ -84,7 +84,7 @@ public class String extends def.js.Object implements Iterable<String> {
* @param that
* String to compare to target string
*/
native public double localeCompare(java.lang.String that);
native public int localeCompare(java.lang.String that);
/**
* Determines whether two strings are equivalent in the current locale.
@ -92,7 +92,7 @@ public class String extends def.js.Object implements Iterable<String> {
* @param that
* String to compare to target string
*/
native public double localeCompare(String that);
native public int localeCompare(String that);
/**
* Matches a string with a regular expression, and returns an array

View File

@ -17,7 +17,7 @@ public class String extends Iterable<String> {
* The zero-based index of the desired character. If there is no
* character at the specified index, NaN is returned.
*/
native public double charCodeAt(int index);
native public int charCodeAt(int index);
/**
* Returns a string that contains the concatenation of two or more strings.
@ -73,7 +73,7 @@ public class String extends Iterable<String> {
* @param that
* String to compare to target string
*/
native public double localeCompare(java.lang.String that);
native public int localeCompare(java.lang.String that);
/**
* Determines whether two strings are equivalent in the current locale.
@ -81,7 +81,7 @@ public class String extends Iterable<String> {
* @param that
* String to compare to target string
*/
native public double localeCompare(String that);
native public int localeCompare(String that);
/**
* Matches a string with a regular expression, and returns an array