나만의 코딩기록

  • 홈
  • 태그
  • 방명록
  • 설정

Predicate 1

CS) Function,Predicate

Function 과 Predicate에 정의된 메서드를 알아본다. Function에 정의된 메서드 test(T t), andThen(), compose(), identity() test(T t) -> Function에 존재하는 abstract method로 하나의 argument 를 받아 boolean을 return해준다. Function f1 = x -> x + 1; Function f2 = x -> x * 2; // Apply f2 after f1 Function f4 = f1.andThen(f2); System.out.println(f4.apply(2)); // Outputs 6 // Compose f2 before f1 Function f3 = f1.compose(f2); System.out.pr..

CS 2023.02.08
이전
1
다음
더보기
프로필사진

나만의 코딩기록

  • 분류 전체보기 (77)
    • Java (10)
      • Java 자료구조 (0)
      • Java 개념 (9)
    • Spring (23)
    • JS (1)
    • CS (14)
    • DB (9)
    • 네트워크 (8)
    • AWS (5)
    • 그외 (1)
    • Elastic-search (1)
    • Docker (2)
    • 인프라 (3)

Tag

TCP, log insights, db 와 entity의 불일치, 쿠키 안보내질때, Prometheus, webp 로변환, Grafana, Sequence Number, 비동기, Acknowledgement Number, jpa, flyway, same-site, Lambda, mysql, erd와 entity의 불일치, ignore-migration-patterns, image크기 변환, spring, AWS,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바