覚えたら書く

IT関係のデベロッパとして日々覚えたことを書き残したいです。twitter: @yyoshikaw

2016-10-05から1日間の記事一覧

com.google.common.collect.ImmutableSet

Guavaのcom.google.common.collect.ImmutableSetの利用サンプルです。 ImmutableSetは不変(Immutable)なSetです。 ImmutableSetへのadd等の変更操作を行うとUnsupportedOperationExceptionがスローされます。 以下のAPIなどを利用してImmutableSetを生成し…