Changes
This commit is contained in:
parent
f7e2ad7227
commit
97a9ae2462
24
src/main/java/com/openeggbert/jdotnet/JDotNet/Pair.java
Normal file
24
src/main/java/com/openeggbert/jdotnet/JDotNet/Pair.java
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.JDotNet;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class Pair<A,B> {
|
||||||
|
@Getter @Setter
|
||||||
|
private A value1;
|
||||||
|
@Getter @Setter
|
||||||
|
private B value2;
|
||||||
|
public Pair(A value1, B value2) {
|
||||||
|
this.value1 = value1;
|
||||||
|
this.value2 = value2;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.JDotNet;
|
||||||
|
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Target(ElementType.TYPE_USE)
|
||||||
|
@AdditionalClassForDotNetSimulation
|
||||||
|
public @interface UnusedCode {
|
||||||
|
String description() default "";
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.System.Diagnostics;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class Debug {
|
||||||
|
public static void Write(String msg) {
|
||||||
|
//todo
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -8,6 +8,8 @@ package com.openeggbert.jdotnet.System;
|
|||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public class NetException extends RuntimeException {
|
public class Environment {
|
||||||
|
public static void Exit(int exitStatusCode) {
|
||||||
|
//todo
|
||||||
|
}
|
||||||
}
|
}
|
@ -4,14 +4,16 @@
|
|||||||
*/
|
*/
|
||||||
package com.openeggbert.jdotnet.System;
|
package com.openeggbert.jdotnet.System;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author robertvokac
|
* @author robertvokac
|
||||||
*/
|
*/
|
||||||
public class NetRandom {
|
@AllArgsConstructor
|
||||||
|
public class Exception_ extends RuntimeException {
|
||||||
public int Next(int i) {
|
public Exception_(String msg) {
|
||||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.System.Globalization;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class CultureInfo {
|
||||||
|
public static CultureInfo getCurrentCulture() {
|
||||||
|
//todo
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
@Getter
|
||||||
|
private String TwoLetterISOLanguageName;
|
||||||
|
|
||||||
|
}
|
15
src/main/java/com/openeggbert/jdotnet/System/IO/Stream.java
Normal file
15
src/main/java/com/openeggbert/jdotnet/System/IO/Stream.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.System.IO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class Stream {
|
||||||
|
public void Close() {
|
||||||
|
//todo
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.System.IO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class StreamReader {
|
||||||
|
public StreamReader(Stream stream) {
|
||||||
|
|
||||||
|
}
|
||||||
|
public String ReadToEnd() {
|
||||||
|
return "";//todo
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
49
src/main/java/com/openeggbert/jdotnet/System/Math_.java
Normal file
49
src/main/java/com/openeggbert/jdotnet/System/Math_.java
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.System;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class Math_ {
|
||||||
|
private Math_() {
|
||||||
|
//Not meant to be instantiated.
|
||||||
|
}
|
||||||
|
public static final double PI = Math.PI;
|
||||||
|
|
||||||
|
public static int Min(int a, int b) {
|
||||||
|
return Math.min(a, b);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int Max(int a, int b) {
|
||||||
|
return Math.max(a, b);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double Min(double a, double b) {
|
||||||
|
return Math.min(a, b);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double Max(double a, double b) {
|
||||||
|
return Math.max(a, b);
|
||||||
|
}
|
||||||
|
public static double Cos(double a) {
|
||||||
|
return Math.cos(a);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static double Sin(double a) {
|
||||||
|
return Math.sin(a);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int Abs(int a) {
|
||||||
|
return Math.abs(a);
|
||||||
|
}
|
||||||
|
public static double Abs(double a) {
|
||||||
|
return Math.abs(a);
|
||||||
|
}
|
||||||
|
public static double Pow(double a, double b) {
|
||||||
|
return Math.pow(a, b);
|
||||||
|
}
|
||||||
|
}
|
22
src/main/java/com/openeggbert/jdotnet/System/Random_.java
Normal file
22
src/main/java/com/openeggbert/jdotnet/System/Random_.java
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.System;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class Random_ {
|
||||||
|
public int Next() {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||||
|
}
|
||||||
|
public int Next(int i) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||||
|
}
|
||||||
|
|
||||||
|
public int Next(int i, int j) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||||
|
}
|
||||||
|
}
|
19
src/main/java/com/openeggbert/jdotnet/System/String_.java
Normal file
19
src/main/java/com/openeggbert/jdotnet/System/String_.java
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||||
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||||
|
*/
|
||||||
|
package com.openeggbert.jdotnet.System;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author robertvokac
|
||||||
|
*/
|
||||||
|
public class String_ {
|
||||||
|
private String_() {
|
||||||
|
//Not meant to be instantiated.
|
||||||
|
}
|
||||||
|
public static boolean IsNullOrEmpty(String string) {
|
||||||
|
return string == null || string.isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -14,4 +14,8 @@ import com.openeggbert.jdotnet.JDotNet.AdditionalClassForDotNetSimulation;
|
|||||||
@AdditionalClassForDotNetSimulation
|
@AdditionalClassForDotNetSimulation
|
||||||
public abstract class Struct<T> {
|
public abstract class Struct<T> {
|
||||||
public abstract T copy();
|
public abstract T copy();
|
||||||
|
/**
|
||||||
|
* Sets this class to its default values.
|
||||||
|
*/
|
||||||
|
public abstract T reset();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user