add license headers

This commit is contained in:
dfsek
2021-11-19 15:42:26 -07:00
parent c52d8b3804
commit 5d3afcc82c
374 changed files with 4389 additions and 77 deletions

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util;
public interface Logger {

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util;
import net.jafama.FastMath;
@@ -145,7 +152,7 @@ public final class MathUtil {
r = FastMath.sqrt(-FastMath.log(r));
if(r <= 5) {
r += -1.6;
r -= 1.6;
val = (((((((r * 7.7454501427834140764e-4 +
.0227238449892691845833) * r + .24178072517745061177) *
r + 1.27045825245236838258) * r +
@@ -159,7 +166,7 @@ public final class MathUtil {
r + 1.6763848301838038494) * r +
2.05319162663775882187) * r + 1);
} else {
r += -5;
r -= 5;
val = (((((((r * 2.01033439929228813265e-7 +
2.71155556874348757815e-5) * r +
.0012426609473880784386) * r + .026532189526576123093) *

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util;
public interface StringIdentifiable {

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util;
import java.io.File;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.generic;
import java.util.function.Supplier;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.generic;
import java.util.function.Supplier;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.generic.either;
import org.jetbrains.annotations.Contract;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.generic.pair;
import org.jetbrains.annotations.Contract;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.generic.pair;
import org.jetbrains.annotations.Contract;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.math;
@FunctionalInterface

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.mutable;
import org.jetbrains.annotations.NotNull;

View File

@@ -1,9 +1,19 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.mutable;
import org.jetbrains.annotations.NotNull;
import java.io.Serial;
public class MutableDouble extends MutableNumber<Double> {
@Serial
private static final long serialVersionUID = -2218110876763640053L;
public MutableDouble(Double value) {

View File

@@ -1,9 +1,19 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.mutable;
import org.jetbrains.annotations.NotNull;
import java.io.Serial;
public class MutableInteger extends MutableNumber<Integer> {
@Serial
private static final long serialVersionUID = -4427935901819632745L;
public MutableInteger(Integer value) {

View File

@@ -1,7 +1,18 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.mutable;
import java.io.Serial;
public abstract class MutableNumber<T extends Number> extends Number implements MutablePrimitive<T> {
@Serial
private static final long serialVersionUID = 8619508342781664393L;
protected T value;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.mutable;
public interface MutablePrimitive<T> extends Comparable<T> {

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
/**
* Mutable objects containing primitive types.
*/

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.reflection;
import org.jetbrains.annotations.NotNull;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.reflection;
import java.lang.reflect.AnnotatedParameterizedType;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.vector;
import net.jafama.FastMath;

View File

@@ -1,3 +1,10 @@
/*
* Copyright (c) 2020-2021 Polyhedral Development
*
* The Terra API is licensed under the terms of the MIT License. For more details,
* reference the LICENSE file in the common/api directory.
*/
package com.dfsek.terra.api.util.vector;
import net.jafama.FastMath;