나만의 코딩기록

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

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
다음
더보기
프로필사진

나만의 코딩기록

  • 분류 전체보기 (78)
    • Language (10)
      • Java (8)
      • JS (1)
    • Framework (24)
      • Spring (24)
    • 공부 (44)
      • CS (9)
      • DB (11)
      • AWS (5)
      • 네트워크 (8)
      • Elastic-search (1)
      • Docker (2)
      • 인프라 (6)
      • etc (1)
      • 구현 (1)

Tag

쿠키, spring, TCP, Prometheus, Intention Lock, Lambda, 비동기, 다중환경, 배포 시간 감축, flyway, AWS, Grafana, X Lock, jpa, Sequence Number, same-site, 쿠키 안보내질때, Acknowledgement Number, mysql, S Lock,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/08   »
일 월 화 수 목 금 토
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 29
30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Daum Corp. All rights reserved.

티스토리툴바