Package megamek.common.comparators
Record Class MekSummaryComparator
java.lang.Object
java.lang.Record
megamek.common.comparators.MekSummaryComparator
- All Implemented Interfaces:
Comparator<MekSummary>
@Deprecated(since="0.51.0",
forRemoval=true)
public record MekSummaryComparator(int m_nType)
extends Record
implements Comparator<MekSummary>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionMekSummaryComparator(int m_nType) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aMekSummaryComparatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompare(MekSummary ms1, MekSummary ms2) Deprecated, for removal: This API element is subject to removal in a future version.final booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.intm_nType()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of them_nTyperecord component.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
T_CHASSIS
public static final int T_CHASSISDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
T_MODEL
public static final int T_MODELDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
T_WEIGHT
public static final int T_WEIGHTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
T_BV
public static final int T_BVDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
T_YEAR
public static final int T_YEARDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
T_COST
public static final int T_COSTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
T_LEVEL
public static final int T_LEVELDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
MekSummaryComparator
public MekSummaryComparator(int m_nType) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance of aMekSummaryComparatorrecord class.- Parameters:
m_nType- the value for them_nTyperecord component
-
-
Method Details
-
compare
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
comparein interfaceComparator<MekSummary>
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.- Specified by:
equalsin interfaceComparator<MekSummary>- Specified by:
equalsin classRecord- Parameters:
o- the object with which to compare- Returns:
trueif this object is the same as theoargument;falseotherwise.
-
m_nType
public int m_nType()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of them_nTyperecord component.- Returns:
- the value of the
m_nTyperecord component
-