@Test public void getTierView() { for (StorageTier tier : mMetaManager.getTiers()) { String tierAlias = tier.getTierAlias(); StorageTierView tierView = mMetadataView.getTierView(tierAlias); assertEquals(tier.getTierAlias(), tierView.getTierViewAlias()); assertEquals(tier.getTierOrdinal(), tierView.getTierViewOrdinal()); } }
public StorageTierView getTierView(String tierAlias) { StorageTierView tierView = mAliasToTierViews.get(tierAlias); if (tierView == null) { throw new IllegalArgumentException( ExceptionMessage.TIER_VIEW_ALIAS_NOT_FOUND.getMessage(tierAlias)); } else { return tierView; } }
BlockMetadataView { public StorageTierView getTierView(String tierAlias) { StorageTierView tierView = mAliasToTierViews.get(tierAlias); if (tierView == null) { throw new IllegalArgumentException( ExceptionMessage.TIER_VIEW_ALIAS_NOT_FOUND.getMessage(tierAlias)); } else { return tierView; } } }
BlockMetadataView { public StorageTierView getTierView(String tierAlias) { StorageTierView tierView = mAliasToTierViews.get(tierAlias); if (tierView == null) { throw new IllegalArgumentException( ExceptionMessage.TIER_VIEW_ALIAS_NOT_FOUND.getMessage(tierAlias)); } else { return tierView; } } BlockMetadataView(BlockMetadataManager manager);  BlockMetadataView(BlockMetadataManager manager, boolean useReservedSpace); }
BlockMetadataView { public StorageTierView getTierView(String tierAlias) { StorageTierView tierView = mAliasToTierViews.get(tierAlias); if (tierView == null) { throw new IllegalArgumentException( ExceptionMessage.TIER_VIEW_ALIAS_NOT_FOUND.getMessage(tierAlias)); } else { return tierView; } } BlockMetadataView(BlockMetadataManager manager);  BlockMetadataView(BlockMetadataManager manager, boolean useReservedSpace); StorageTierView getTierView(String tierAlias); List<StorageTierView> getTierViews(); @Nullable StorageTierView getNextTier(StorageTierView tierView); List<StorageTierView> getTierViewsBelow(String tierAlias); BlockMetadataView refreshView(); }
BlockMetadataView { public StorageTierView getTierView(String tierAlias) { StorageTierView tierView = mAliasToTierViews.get(tierAlias); if (tierView == null) { throw new IllegalArgumentException( ExceptionMessage.TIER_VIEW_ALIAS_NOT_FOUND.getMessage(tierAlias)); } else { return tierView; } } BlockMetadataView(BlockMetadataManager manager);  BlockMetadataView(BlockMetadataManager manager, boolean useReservedSpace); StorageTierView getTierView(String tierAlias); List<StorageTierView> getTierViews(); @Nullable StorageTierView getNextTier(StorageTierView tierView); List<StorageTierView> getTierViewsBelow(String tierAlias); BlockMetadataView refreshView();  }