cast<RK, RV> method

Map<RK, RV> cast<RK, RV>(
  1. ConfigMap config
)

Provides a view of this map as having RK keys and RV instances. May return M<RK, RV> or Map<RK, RV>.

Implementation

Map<RK, RV> cast<RK, RV>(ConfigMap config) =>
    (RK == K && RV == V) ? (this as Map<RK, RV>) : getFlushed(config).cast<RK, RV>();