001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005// THIS FILE WAS AUTO-GENERATED BY ./wpiunits/generate_units.py. DO NOT MODIFY
006
007package edu.wpi.first.units.measure;
008
009import static edu.wpi.first.units.Units.*;
010import edu.wpi.first.units.*;
011
012@SuppressWarnings({"unchecked", "cast", "checkstyle", "PMD"})
013public record ImmutableResistance(double magnitude, double baseUnitMagnitude, ResistanceUnit unit) implements Resistance {
014  @Override
015  public Resistance copy() {
016    return this;
017  }
018
019  @Override
020  public String toString() {
021    return toShortString();
022  }
023
024  @Override
025  public boolean equals(Object o) {
026    return o instanceof Measure<?> m && isEquivalent(m);
027  }
028}