Rename TransferVariant.componentsMatches -> componentsMatch (#3645)

This commit is contained in:
modmuss
2024-03-12 09:25:33 +00:00
committed by GitHub
parent 0e8f45ba8d
commit 168bf74f8b
3 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ public interface TransferVariant<O> {
*
* <p>Note: True is returned if both tags are {@code null}.
*/
default boolean componentsMatches(ComponentChanges other) {
default boolean componentsMatch(ComponentChanges other) {
return Objects.equals(getComponents(), other);
}

View File

@@ -99,7 +99,7 @@ public class FluidVariantImpl implements FluidVariant {
FluidVariantImpl fluidVariant = (FluidVariantImpl) o;
// fail fast with hash code
return hashCode == fluidVariant.hashCode && fluid == fluidVariant.fluid && componentsMatches(fluidVariant.components);
return hashCode == fluidVariant.hashCode && fluid == fluidVariant.fluid && componentsMatch(fluidVariant.components);
}
@Override

View File

@@ -88,7 +88,7 @@ public class ItemVariantImpl implements ItemVariant {
ItemVariantImpl ItemVariant = (ItemVariantImpl) o;
// fail fast with hash code
return hashCode == ItemVariant.hashCode && item == ItemVariant.item && componentsMatches(ItemVariant.components);
return hashCode == ItemVariant.hashCode && item == ItemVariant.item && componentsMatch(ItemVariant.components);
}
@Override