Interface HTColoredContents

  • All Implemented Interfaces:
    kotlin.collections.Iterable

    
    public interface HTColoredContents<T extends SupplierWithId<?>>
     implements Iterable<Pair<HTDefaultColor, T>>
                        

    色のバリエーションを持つ要素をまとめるインターフェースです。

    Since:

    0.15.0

    Author:

    Hiiragi Tsubasa

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract T get(HTDefaultColor color) 指定したに対応する要素を取得します。
      abstract T get(DyeColor color) 指定したに対応する要素を取得します。
      • Methods inherited from class kotlin.collections.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • get

         abstract T get(HTDefaultColor color)

        指定したに対応する要素を取得します。

        Returns:

        対応する要素がない場合はnull

      • get

         abstract T get(DyeColor color)

        指定したに対応する要素を取得します。

        Returns:

        対応する要素がない場合はnull