-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated classes after commit fd9e620 * Added developed classes from JNet * Added developed classes to replace generated one like in JNet * Update java classes --------- Co-authored-by: masesdevelopers <[email protected]>
- Loading branch information
1 parent
fd9e620
commit 48c3518
Showing
146 changed files
with
7,349 additions
and
1,472 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...tdroid/src/main/java/org/mases/netdroid/developed/java/lang/UncaughtExceptionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.lang; | ||
|
||
import org.mases.jcobridge.JCListener; | ||
import org.mases.jcobridge.JCNativeException; | ||
import org.mases.jcobridge.JCObject; | ||
|
||
/** | ||
* The {@link UncaughtExceptionHandler} class represents a generic implementation of | ||
* {@link Thread.UncaughtExceptionHandler} | ||
*/ | ||
public class UncaughtExceptionHandler extends JCListener implements Thread.UncaughtExceptionHandler { | ||
public UncaughtExceptionHandler(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
/** | ||
* Method invoked when the given thread terminates due to the given uncaught exception. | ||
*/ | ||
public void uncaughtException(Thread t, Throwable e) { | ||
raiseEvent("uncaughtException", t, e); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
src/jvm/netdroid/src/main/java/org/mases/netdroid/developed/java/util/Comparator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
import java.util.function.Function; | ||
import java.util.function.ToDoubleFunction; | ||
import java.util.function.ToIntFunction; | ||
import java.util.function.ToLongFunction; | ||
|
||
/** | ||
* The {@link Comparator} class represents a generic implementation | ||
* of {@link java.util.Comparator} | ||
*/ | ||
public class Comparator extends JCListener implements java.util.Comparator { | ||
public Comparator(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
public int compare(Object o1, Object o2) { | ||
raiseEvent("compare", o1, o2); | ||
Object returnVal = getReturnData(); | ||
return (int) returnVal; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
raiseEvent("equals", obj); | ||
Object returnVal = getReturnData(); | ||
return (boolean) returnVal; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/jvm/netdroid/src/main/java/org/mases/netdroid/developed/java/util/EventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util; | ||
|
||
public final class EventListener extends org.mases.jcobridge.JCListener implements java.util.EventListener { | ||
public EventListener(String key) throws org.mases.jcobridge.JCNativeException { | ||
super(key); | ||
} | ||
|
||
|
||
} |
36 changes: 36 additions & 0 deletions
36
...vm/netdroid/src/main/java/org/mases/netdroid/developed/java/util/function/BiConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util.function; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
/** | ||
* The {@link BiConsumer} class represents a generic implementation of | ||
* {@link java.util.function.BiConsumer} | ||
*/ | ||
public final class BiConsumer extends JCListener implements java.util.function.BiConsumer { | ||
public BiConsumer(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
@Override | ||
public void accept(Object e1, Object e2) { | ||
raiseEvent("accept", e1, e2); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...vm/netdroid/src/main/java/org/mases/netdroid/developed/java/util/function/BiFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util.function; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
/** | ||
* The {@link BiFunction} class represents a generic implementation of | ||
* {@link java.util.function.BiFunction} | ||
*/ | ||
public final class BiFunction extends JCListener implements java.util.function.BiFunction { | ||
public BiFunction(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
@Override | ||
public Object apply(Object e1, Object e2) { | ||
raiseEvent("apply", e1, e2); | ||
Object retVal = getReturnData(); | ||
return retVal; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...m/netdroid/src/main/java/org/mases/netdroid/developed/java/util/function/BiPredicate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util.function; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
/** | ||
* The {@link BiPredicate} class represents a generic implementation of | ||
* {@link java.util.function.BiPredicate} | ||
*/ | ||
public final class BiPredicate extends JCListener implements java.util.function.BiPredicate { | ||
public BiPredicate(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
@Override | ||
public boolean test(Object e1, Object e2) { | ||
raiseEvent("test", e1, e2); | ||
Object retVal = getReturnData(); | ||
return (boolean) retVal; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...etdroid/src/main/java/org/mases/netdroid/developed/java/util/function/BinaryOperator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util.function; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
/** | ||
* The {@link BinaryOperator} class represents a generic implementation of | ||
* {@link java.util.function.BinaryOperator} | ||
*/ | ||
public final class BinaryOperator extends JCListener implements java.util.function.BinaryOperator { | ||
public BinaryOperator(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
@Override | ||
public Object apply(Object e1, Object e2) { | ||
raiseEvent("apply", e1, e2); | ||
Object retVal = getReturnData(); | ||
return retVal; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...tdroid/src/main/java/org/mases/netdroid/developed/java/util/function/BooleanSupplier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util.function; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
/** | ||
* The {@link BooleanSupplier} class represents a generic implementation of | ||
* {@link java.util.function.BooleanSupplier} | ||
*/ | ||
public final class BooleanSupplier extends JCListener implements java.util.function.BooleanSupplier { | ||
public BooleanSupplier(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
@Override | ||
public boolean getAsBoolean() { | ||
raiseEvent("getAsBoolean", null); | ||
Object retVal = getReturnData(); | ||
return (boolean) retVal; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/jvm/netdroid/src/main/java/org/mases/netdroid/developed/java/util/function/Consumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util.function; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
/** | ||
* The {@link Consumer} class represents a generic implementation of | ||
* {@link java.util.function.Consumer} | ||
*/ | ||
public final class Consumer extends JCListener implements java.util.function.Consumer { | ||
public Consumer(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
@Override | ||
public void accept(Object e) { | ||
raiseEvent("accept", e); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...d/src/main/java/org/mases/netdroid/developed/java/util/function/DoubleBinaryOperator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2024 MASES s.r.l. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Refer to LICENSE for more information. | ||
*/ | ||
|
||
package org.mases.netdroid.developed.java.util.function; | ||
|
||
import org.mases.jcobridge.*; | ||
|
||
/** | ||
* The {@link DoubleBinaryOperator} class represents a generic implementation of | ||
* {@link java.util.function.DoubleBinaryOperator} | ||
*/ | ||
public final class DoubleBinaryOperator extends JCListener implements java.util.function.DoubleBinaryOperator { | ||
public DoubleBinaryOperator(String key) throws JCNativeException { | ||
super(key); | ||
} | ||
|
||
@Override | ||
public double applyAsDouble(double e1, double e2) { | ||
raiseEvent("applyAsDouble", e1, e2); | ||
Object retVal = getReturnData(); | ||
return (double) retVal; | ||
} | ||
} |
Oops, something went wrong.