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 jp.satomaru; | |
import java.util.stream.Stream; | |
import lombok.Getter; | |
import lombok.RequiredArgsConstructor; | |
public class FooBarProcessor { | |
@RequiredArgsConstructor |
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
Option Explicit | |
Dim application | |
Dim folder | |
Dim fileName | |
Dim line | |
Dim i | |
WScript.Echo "名前" & vbTab & "サイズ" & vbTab & "種類" & vbTab & "更新日時" & vbTab & "作成日時" |
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 satomaru.quiz; | |
import java.util.Random; | |
import java.util.function.Consumer; | |
import java.util.function.Supplier; | |
public final class Ppap { | |
public enum Elements { | |
APPLE, PEN, PINEAPPLE |
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 tools.util; | |
import java.util.Comparator; | |
import java.util.function.Function; | |
/** | |
* 単純なコンパレーターです。 | |
* | |
* @param <T> ソート対象 | |
* @param <C> ソートに用いる値の型 |
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
/** | |
* 列挙型セットマップを作成します。 | |
*/ | |
public final class EnumSetMapBuilder { | |
/** コレクター特性。 */ | |
public static final Set<Collector.Characteristics> ENUM_SET_MAP_COLLECTOR_CHARS = | |
Collections.singleton(Collector.Characteristics.UNORDERED); | |
/** |
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 satomaru.sandbox.stream; | |
import java.util.Optional; | |
import java.util.function.BiFunction; | |
import java.util.stream.Stream; | |
/** | |
* Java Stream API にこういう機能があったらいいなあ的な妄想を書きなぐりました。 | |
* | |
* <p> |
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 satomaru.quiz; | |
import java.util.Arrays; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.Optional; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; | |
/** |
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
public final class MapLists<K, V> { | |
public final class Maps { | |
private final HashMap<K, V> map = new HashMap<K, V>(); | |
private Maps() { | |
} | |
public Maps put(K key, V value) { | |
map.put(key, value); |
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 java9.sample; | |
import java.time.LocalTime; | |
import java.util.concurrent.Flow; | |
import java.util.concurrent.SubmissionPublisher; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; | |
public class FlowTest { |
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
import java.util.function.Supplier; | |
public enum CircularReference { | |
P1(() -> Child.C1), | |
P2(() -> Child.C2); | |
public enum Child { | |
C1(P1), | |
C2(P2); |
OlderNewer