Compare commits
7 Commits
0.0.0
...
f6ccba4b17
| Author | SHA256 | Date | |
|---|---|---|---|
| f6ccba4b17 | |||
| 1ceed9cfb0 | |||
| bcfd3a8fc9 | |||
|
|
ca639ea6f6 | ||
|
|
df259029bb | ||
|
|
5336a84c63 | ||
|
|
588e046f5e |
@@ -28,15 +28,15 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.jetbrains:annotations:26.0.1")
|
compileOnly("org.jetbrains:annotations:26.0.2-1")
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain { languageVersion.set(JavaLanguageVersion.of(24)) }
|
toolchain { languageVersion.set(JavaLanguageVersion.of(25)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<JavaCompile> {
|
tasks.withType<JavaCompile>().configureEach {
|
||||||
options.release.set(24)
|
options.release.set(25)
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
org.gradle.java.installations.auto-detect=true
|
org.gradle.java.installations.auto-detect=true
|
||||||
org.gradle.java.installations.fromEnv=JAVA_HOME
|
org.gradle.java.installations.fromEnv=JAVA_HOME
|
||||||
org.gradle.java.installations.paths=/usr/local/software/java/jfx-24
|
org.gradle.java.installations.paths=/usr/local/software/java/jfx-25
|
||||||
org.gradle.java.installations.auto-download=false
|
org.gradle.java.installations.auto-download=false
|
||||||
org.gradle.configuration-cache=true
|
org.gradle.configuration-cache=true
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-all.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package com.r35157.libs.random;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface provides a way to generate random integers.
|
||||||
|
*/
|
||||||
|
public interface RandomValueGeneratorInt {
|
||||||
|
/**
|
||||||
|
* Returns a random integer in the full range (min -2<sup>31</sup>. to max 2<sup>31</sup>-1)
|
||||||
|
*
|
||||||
|
* @return a random integer in full range
|
||||||
|
*/
|
||||||
|
int getSomeInt();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a random integer in the range provided by the parameters. Both parameters are included in the range and
|
||||||
|
* {@code minInclusive} must be less than {@code maxInclusive}.
|
||||||
|
*
|
||||||
|
* @return a random integer in the provided range
|
||||||
|
*/
|
||||||
|
int getSomeInt(int minInclusive, int maxInclusive);
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.r35157.libs.random;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
public interface RandomValueGeneratorString {
|
||||||
|
/**
|
||||||
|
* Generate a random Alpha Numeric String of exactly the length given as the parameter.
|
||||||
|
*
|
||||||
|
* @param length Length of generated String - cannot be negative
|
||||||
|
* @return A non-null random String of the length given
|
||||||
|
* @throws IllegalArgumentException If length is negative
|
||||||
|
*/
|
||||||
|
@NotNull String getSomeStringAlphaNumericOnly(int length) throws IllegalArgumentException;
|
||||||
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package com.r35157.libs.random;
|
|
||||||
|
|
||||||
public interface SomeInterface {
|
|
||||||
String concat(String x, String y);
|
|
||||||
void divideByZero() throws ArithmeticException;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user