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.hoge; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.validation.Valid; | |
import javax.validation.constraints.NotNull; | |
import com.fasterxml.jackson.annotation.JsonProperty; |
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.Arrays; | |
import java.util.Optional; | |
public class ReduceTest { | |
public static void main(String[] args) { | |
Optional<Sum> summary = Arrays.asList(new Sum(1, 10),new Sum(2, 15),new Sum(3, 5)).stream().reduce((sum1,sum2) -> { | |
if (Optional.ofNullable(sum1).isPresent() == false) { | |
System.out.println("Sum1 is empty."); | |
return sum2; |
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
var myJson1 = {title:"タイトル_1_ですよ。",detail:"このデータはlistデータを持ってるのです。",list:[{listTitle:"1個目なのです",attrChecked:true,attrName:"name_1"},{listTitle:"2個目なのです",attrChecked:false,attrName:"name_2"}]}; | |
var myJson2 = {title:"タイトル_2_ですよ。",detail:"このデータはlistデータを持ってないのです。"}; | |
function showTitle(title) { | |
alert(title); | |
}; | |
function setTemplateData(type) { | |
// テンプレートの取得 | |
var t = jstGetTemplate('template'); |
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.test.hoge.controller; | |
import jp.test.hoge.model.HogeModel; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.ResponseBody; | |
@Controller | |
public class HogeController { |
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
https://beroux.com/english/articles/kubernetes/?part=3 |
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
configurations { jmockit } | |
dependencies { | |
jmockit ('com.googlecode.jmockit:jmockit:1.7') | |
testCompile ('junit:junit:4.11') | |
} | |
test { | |
// jmockitがjunitよりも前にclasspathが通ってる必要があるので下記の対応を行っています |
OlderNewer