Contents
Class AssetsDuplicatesCommand.DuplicatedAssetInfo
java.lang.Object
com.hypixel.hytale.server.core.command.commands.debug.AssetsDuplicatesCommand.DuplicatedAssetInfo
- Enclosing class:
AssetsDuplicatesCommand
Information about duplicated assets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<AssetsDuplicatesCommand.DuplicatedAssetInfo> A comparator that sorts by wasted space in ascending order.static final Comparator<AssetsDuplicatesCommand.DuplicatedAssetInfo> A comparator that sorts by wasted space in descending order. -
Constructor Summary
ConstructorsConstructorDescriptionDuplicatedAssetInfo(String hash, List<CommonAssetRegistry.PackAsset> assets) Constructor for aAssetsDuplicatesCommand.DuplicatedAssetInfoinstance. -
Method Summary
Modifier and TypeMethodDescriptionCalculates the total wasted size due to duplication.
-
Field Details
-
COMPARATOR
A comparator that sorts by wasted space in ascending order. -
COMPARATOR_REVERSE
@Nonnull public static final Comparator<AssetsDuplicatesCommand.DuplicatedAssetInfo> COMPARATOR_REVERSEA comparator that sorts by wasted space in descending order.
-
-
Constructor Details
-
DuplicatedAssetInfo
public DuplicatedAssetInfo(@Nonnull String hash, @Nonnull List<CommonAssetRegistry.PackAsset> assets) Constructor for aAssetsDuplicatesCommand.DuplicatedAssetInfoinstance.- Parameters:
hash- The hash of the duplicated asset.assets- The list of duplicated assets.
-
-
Method Details
-
calculateTotalSize
Calculates the total wasted size due to duplication.- Returns:
- A future that completes when the calculation is done.
-