Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

값의 동등성

항목값
화면 이름Equals
식별자equalsV1
지원 실행 방식Batch, Faster, Streaming
범주논리 (Boolean)
반환 자료형Boolean

left와 right가 같으면 true를 반환합니다.

입력 인자

이름지정 여부자료형의미와 조건
Left필수Expression<ComparableType>왼쪽 표현식입니다.
Right필수Expression<ComparableType>오른쪽 표현식입니다.
Null safe선택Literal<Boolean>null을 false로 취급합니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • Left: a
  • Right: b
  • Null safe: true
ab출력
11true
10false

예시 2: 기본 동작

인자 값:

  • Left: a
  • Right: b
  • Null safe: true
ab출력
1.01true
1.00false

예시 3: 기본 동작

인자 값:

  • Left: departure
  • Right: destination
  • Null safe: true
departuredestination출력
HeathrowHeathrowtrue
HeathrowGatwickfalse

예시 4: null 처리

인자 값:

  • Left: departure
  • Right: destination
  • Null safe: true
departuredestination출력
nullnulltrue
nullHeathrowfalse

예시 5: null 처리

인자 값:

  • Left: departure
  • Right: destination
  • Null safe: false
departuredestination출력
nullnullnull
nullHeathrownull

예시 6: null 처리

인자 값:

  • Left: departure
  • Right: destination
  • Null safe: null
departuredestination출력
nullnulltrue
nullHeathrowfalse