Last active
August 29, 2015 14:10
-
-
Save kozake/e86db07ecb0ac3d5d003 to your computer and use it in GitHub Desktop.
しょぼちむ Advent Calendar 2014 のソース(しょぼちむ)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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