SCRIPT Run java package replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:55:43 -05:00
committed by Peter Johnson
parent 12823a003d
commit f0a3c64121
1590 changed files with 8469 additions and 8469 deletions

View File

@@ -2,18 +2,18 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Acceleration;
import org.wpilib.units.measure.Acceleration;
/**
* A generic unit of acceleration.
*
* <p><strong>NOTE:</strong> This type is not compatible with unit-specific accelerations like
* {@link edu.wpi.first.units.measure.LinearAcceleration}. Authors of APIs that need to interact
* {@link org.wpilib.units.measure.LinearAcceleration}. Authors of APIs that need to interact
* with all types should consider using a generic {@code Measure<? extends PerUnit<? extends
* PerUnit<[dimension>], TimeUnit>, TimeUnit>}. Bounded wildcards are necessary in order to
* interoperate with <i>any</i> subclass of the {@link edu.wpi.first.units.measure.Per} measurement
* interoperate with <i>any</i> subclass of the {@link org.wpilib.units.measure.Per} measurement
* type.
*
* @param <D> the unit of the accelerating quantity

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Angle;
import org.wpilib.units.measure.Angle;
/**
* Unit of angular dimension.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.AngularAcceleration;
import org.wpilib.units.measure.AngularAcceleration;
/** A unit of angular acceleration, such as {@link Units#RadiansPerSecondPerSecond}. */
public final class AngularAccelerationUnit extends PerUnit<AngularVelocityUnit, TimeUnit> {

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.AngularMomentum;
import org.wpilib.units.measure.AngularMomentum;
/**
* A unit of angular momentum, modeled as linear momentum of an object rotating some distance away

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.AngularVelocity;
import org.wpilib.units.measure.AngularVelocity;
/** A unit of angular velocity like {@link Units#RadiansPerSecond}. */
public final class AngularVelocityUnit extends PerUnit<AngleUnit, TimeUnit> {

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
/** The base units of measure. */
public final class BaseUnits {

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.collections.LongToObjectHashMap;
import org.wpilib.units.collections.LongToObjectHashMap;
import java.util.Objects;
import java.util.function.BiFunction;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Current;
import org.wpilib.units.measure.Current;
/**
* Unit of electric current dimension.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Dimensionless;
import org.wpilib.units.measure.Dimensionless;
/**
* A type of unit that corresponds to raw values and not any physical dimension, such as percentage.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Distance;
import org.wpilib.units.measure.Distance;
/**
* Unit of linear dimension.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Energy;
import org.wpilib.units.measure.Energy;
/**
* Unit of energy dimension.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Force;
import org.wpilib.units.measure.Force;
/** A unit of force like {@link Units#Newtons}. */
public final class ForceUnit extends MultUnit<MassUnit, LinearAccelerationUnit> {

View File

@@ -2,13 +2,13 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import static edu.wpi.first.units.Units.Value;
import static org.wpilib.units.Units.Value;
import edu.wpi.first.units.measure.Frequency;
import org.wpilib.units.measure.Frequency;
/** A unit of frequency like {@link edu.wpi.first.units.Units#Hertz}. */
/** A unit of frequency like {@link org.wpilib.units.Units#Hertz}. */
public final class FrequencyUnit extends PerUnit<DimensionlessUnit, TimeUnit> {
private static final CombinatoryUnitCache<DimensionlessUnit, TimeUnit, FrequencyUnit> cache =
new CombinatoryUnitCache<>(FrequencyUnit::new);

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Dimensionless;
import org.wpilib.units.measure.Dimensionless;
/**
* A measure holds the magnitude and unit of some dimension, such as distance, time, or speed. An

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.LinearAcceleration;
import org.wpilib.units.measure.LinearAcceleration;
/**
* A unit of linear acceleration like {@link edu.wpi.first.units.Units#MetersPerSecondPerSecond}.
* A unit of linear acceleration like {@link org.wpilib.units.Units#MetersPerSecondPerSecond}.
*/
public final class LinearAccelerationUnit extends PerUnit<LinearVelocityUnit, TimeUnit> {
private static final CombinatoryUnitCache<LinearVelocityUnit, TimeUnit, LinearAccelerationUnit>

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.LinearMomentum;
import org.wpilib.units.measure.LinearMomentum;
/** A unit of linear momentum like {@link edu.wpi.first.units.Units#KilogramMetersPerSecond}. */
/** A unit of linear momentum like {@link org.wpilib.units.Units#KilogramMetersPerSecond}. */
public final class LinearMomentumUnit extends MultUnit<MassUnit, LinearVelocityUnit> {
private static final CombinatoryUnitCache<MassUnit, LinearVelocityUnit, LinearMomentumUnit>
cache = new CombinatoryUnitCache<>(LinearMomentumUnit::new);

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.LinearVelocity;
import org.wpilib.units.measure.LinearVelocity;
/** A unit of linear velocity like {@link edu.wpi.first.units.Units#MetersPerSecond}. */
/** A unit of linear velocity like {@link org.wpilib.units.Units#MetersPerSecond}. */
public final class LinearVelocityUnit extends PerUnit<DistanceUnit, TimeUnit> {
private static final CombinatoryUnitCache<DistanceUnit, TimeUnit, LinearVelocityUnit> cache =
new CombinatoryUnitCache<>(LinearVelocityUnit::new);

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Mass;
import org.wpilib.units.measure.Mass;
/**
* Unit of mass dimension.

View File

@@ -2,35 +2,35 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import static edu.wpi.first.units.Units.Value;
import static org.wpilib.units.Units.Value;
import edu.wpi.first.units.measure.Acceleration;
import edu.wpi.first.units.measure.Angle;
import edu.wpi.first.units.measure.AngularAcceleration;
import edu.wpi.first.units.measure.AngularMomentum;
import edu.wpi.first.units.measure.AngularVelocity;
import edu.wpi.first.units.measure.Current;
import edu.wpi.first.units.measure.Dimensionless;
import edu.wpi.first.units.measure.Distance;
import edu.wpi.first.units.measure.Energy;
import edu.wpi.first.units.measure.Force;
import edu.wpi.first.units.measure.Frequency;
import edu.wpi.first.units.measure.LinearAcceleration;
import edu.wpi.first.units.measure.LinearMomentum;
import edu.wpi.first.units.measure.LinearVelocity;
import edu.wpi.first.units.measure.Mass;
import edu.wpi.first.units.measure.MomentOfInertia;
import edu.wpi.first.units.measure.Mult;
import edu.wpi.first.units.measure.Per;
import edu.wpi.first.units.measure.Power;
import edu.wpi.first.units.measure.Resistance;
import edu.wpi.first.units.measure.Temperature;
import edu.wpi.first.units.measure.Time;
import edu.wpi.first.units.measure.Torque;
import edu.wpi.first.units.measure.Velocity;
import edu.wpi.first.units.measure.Voltage;
import org.wpilib.units.measure.Acceleration;
import org.wpilib.units.measure.Angle;
import org.wpilib.units.measure.AngularAcceleration;
import org.wpilib.units.measure.AngularMomentum;
import org.wpilib.units.measure.AngularVelocity;
import org.wpilib.units.measure.Current;
import org.wpilib.units.measure.Dimensionless;
import org.wpilib.units.measure.Distance;
import org.wpilib.units.measure.Energy;
import org.wpilib.units.measure.Force;
import org.wpilib.units.measure.Frequency;
import org.wpilib.units.measure.LinearAcceleration;
import org.wpilib.units.measure.LinearMomentum;
import org.wpilib.units.measure.LinearVelocity;
import org.wpilib.units.measure.Mass;
import org.wpilib.units.measure.MomentOfInertia;
import org.wpilib.units.measure.Mult;
import org.wpilib.units.measure.Per;
import org.wpilib.units.measure.Power;
import org.wpilib.units.measure.Resistance;
import org.wpilib.units.measure.Temperature;
import org.wpilib.units.measure.Time;
import org.wpilib.units.measure.Torque;
import org.wpilib.units.measure.Velocity;
import org.wpilib.units.measure.Voltage;
/**
* A measure holds the magnitude and unit of some dimension, such as distance, time, or speed. Two

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.MomentOfInertia;
import org.wpilib.units.measure.MomentOfInertia;
/**
* A unit of moment of inertia, like {@link edu.wpi.first.units.Units#KilogramSquareMeters}. Moments
* A unit of moment of inertia, like {@link org.wpilib.units.Units#KilogramSquareMeters}. Moments
* of inertia describe how much an object resists being rotated, analogous to mass's resistance to
* being accelerated along a line.
*/

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Mult;
import org.wpilib.units.measure.Mult;
import java.util.Objects;
/**
@@ -91,7 +91,7 @@ public class MultUnit<A extends Unit, B extends Unit> extends Unit {
* {@inheritDoc}
*
* <p>Note: When called on an object of type {@code MultUnit} (and <i>not</i> a subclass!), this
* method will always return a {@link edu.wpi.first.units.measure.Mult} instance. If you want to
* method will always return a {@link org.wpilib.units.measure.Mult} instance. If you want to
* avoid casting, use {@link #ofNativeBaseUnits(double)} that returns a {@code Per} instance
* directly.
*
@@ -107,7 +107,7 @@ public class MultUnit<A extends Unit, B extends Unit> extends Unit {
* {@inheritDoc}
*
* <p>Note: When called on an object of type {@code MultUnit} (and <i>not</i> a subclass!), this
* method will always return a {@link edu.wpi.first.units.measure.Mult} instance. If you want to
* method will always return a {@link org.wpilib.units.measure.Mult} instance. If you want to
* avoid casting, use {@link #ofNativeBaseUnits(double)} that returns a {@code Per} instance
* directly.
*

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Per;
import org.wpilib.units.measure.Per;
import java.util.Objects;
/**
@@ -157,7 +157,7 @@ public class PerUnit<N extends Unit, D extends Unit> extends Unit {
* {@inheritDoc}
*
* <p>Note: When called on an object of type {@code PerUnit} (and <i>not</i> a subclass!), this
* method will always return a {@link edu.wpi.first.units.measure.Per} instance. If you want to
* method will always return a {@link org.wpilib.units.measure.Per} instance. If you want to
* avoid casting, use {@link #ofNative(double)} that returns a {@code Per} instance directly.
*
* @param magnitude the magnitude of the measure
@@ -172,7 +172,7 @@ public class PerUnit<N extends Unit, D extends Unit> extends Unit {
* {@inheritDoc}
*
* <p>Note: When called on an object of type {@code PerUnit} (and <i>not</i> a subclass!), this
* method will always return a {@link edu.wpi.first.units.measure.Per} instance. If you want to
* method will always return a {@link org.wpilib.units.measure.Per} instance. If you want to
* avoid casting, use {@link #ofNativeBaseUnits(double)} that returns a {@code Per} instance
* directly.
*

View File

@@ -2,12 +2,12 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import static edu.wpi.first.units.Units.Joules;
import static edu.wpi.first.units.Units.Seconds;
import static org.wpilib.units.Units.Joules;
import static org.wpilib.units.Units.Seconds;
import edu.wpi.first.units.measure.Power;
import org.wpilib.units.measure.Power;
/**
* Unit of power dimension.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Resistance;
import org.wpilib.units.measure.Resistance;
/**
* Unit of resistance dimension.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Temperature;
import org.wpilib.units.measure.Temperature;
/**
* Unit of temperature dimension.

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Time;
import org.wpilib.units.measure.Time;
/**
* Unit of time dimension.

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Torque;
import org.wpilib.units.measure.Torque;
/** A unit of torque like {@link edu.wpi.first.units.Units#NewtonMeters}. */
/** A unit of torque like {@link org.wpilib.units.Units#NewtonMeters}. */
public final class TorqueUnit extends MultUnit<DistanceUnit, ForceUnit> {
private static final CombinatoryUnitCache<DistanceUnit, ForceUnit, TorqueUnit> cache =
new CombinatoryUnitCache<>(TorqueUnit::new);

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import java.util.Objects;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import java.util.Objects;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import java.util.Locale;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Velocity;
import org.wpilib.units.measure.Velocity;
/**
* Unit of velocity dimension that is a combination of a distance unit (numerator) and a time unit

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units;
package org.wpilib.units;
import edu.wpi.first.units.measure.Voltage;
import org.wpilib.units.measure.Voltage;
/**
* Unit of electric voltage dimension.

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units.collections;
package org.wpilib.units.collections;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.units.collections;
package org.wpilib.units.collections;
import java.util.Arrays;
import java.util.Iterator;