30 Ekim 2018 Salı

ImmutableRangeMap.Builder Sınıfı

build metodu
Şöyle yaparız.
ImmutableRangeMap<Long, String> metrics= new ImmutableRangeMap.Builder<Long, String>()
  .put(Range.closed(MIN_VALUE1, MAX_VALUE1), "Metric1")
  .put(Range.closed(MIN_VALUE2, MAX_VALUE2), "Metric2")
  .put(Range.closed(MIN_VALUE3, MAX_VALUE3), "Metric3")
  .build();

Hiç yorum yok:

Yorum Gönder