Skip to content

Instantly share code, notes, and snippets.

@kozake
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kozake/e86db07ecb0ac3d5d003 to your computer and use it in GitHub Desktop.
Save kozake/e86db07ecb0ac3d5d003 to your computer and use it in GitHub Desktop.
しょぼちむ Advent Calendar 2014 のソース(しょぼちむ)
package syobochim;
import java.math.BigDecimal;
import java.util.stream.Stream;
public enum しょぼちむ {
バイトの女の子, ようおっさん, 二年目女子SE, おまえ誰だ, まじレッドキング;
public static Stream<可能性<しょぼちむ>> とは() {
return Stream.of(
可能性.create(バイトの女の子
, new BigDecimal("0.6"))
, 可能性.create(ようおっさん
, new BigDecimal("0.2"))
, 可能性.create(二年目女子SE
, new BigDecimal("0.1"))
, 可能性.create(おまえ誰だ
, new BigDecimal("0.09"))
, 可能性.create(まじレッドキング
, new BigDecimal("0.01"))
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment