[Java] Method Naming Convention
- κ°μΈμ μΌλ‘ κ°λ°μ μ§ννλ©΄μ DTO λ¨μ λ©μλ μ΄λ¦μ μ§μ λ ofλ₯Ό μ무 μκ° μμ΄ μ¬μ©νκ³ λ νμλλ°, Orcale 곡μ λ¬Έμμμ μλ°μ λ©μλ λ€μ΄λ° 컨벀μ μ κ΄ν κΈμ΄ μλ κ±Έ νμΈν΄μ... κ°λ¨νκ² μ 리ν΄λκ³ μ νλ€.
Method Naming Conventions (The Java™ Tutorials > Date Time > Date-Time Overview)
The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available. See Java Language Changes for a summary of updated
docs.oracle.com
- νμλ μ΄λ κ² λμμλλ°, λμΆ© νκ΅μ΄λ‘ νμ΄μ°λ©΄
of | static | ν©ν 리 λ©μλμμ inputμΌλ‘ λ€μ΄μ¨ νλΌλ―Έν°λ₯Ό λ³λλ‘ λ³ννμ§ μκ³ , μΈμ€ν΄μ€λ₯Ό μμ±ν λ μ¬μ© |
from | static | InputμΌλ‘ λ€μ΄μ¨ νλΌλ―Έν°λ₯Ό λ³ννμ¬ target classμ μΈμ€ν΄μ€λ‘ λ³νν λ μ¬μ© |
parse | static | inputμΌλ‘ λ€μ΄μ¨ λ¬Έμμ΄μ νμ±νμ¬ λμ ν΄λμ€μ μΈμ€ν΄μ€λ₯Ό μμ±ν λ μ¬μ© |
format | instance | νΉμ ν ν¬λ§€ν°λ₯Ό νμ©νμ¬ temporal objectμ κ°μ ν¬λ§·ν ν΄ λ¬Έμμ΄μ μμ± μ μ¬μ© |
get | instance | λμ κ°μ²΄μ μΌλΆλ₯Ό λ°νν λ μ¬μ© |
is | instance | λμ κ°μ²΄μ μνλ₯Ό μ§μν λ μ¬μ© |
with | instance | λμ κ°μ²΄μ 볡μ¬λ³Έμ λ°ννλ©°, μ΄κ² λΆλ³ κ°μ²΄λ‘ κ΄λ¦¬λ λ μ¬μ© |
plus | instance | μκ°μ λ°λΌ λμ κ°μ²΄μ 볡μ¬λ³Έμ λ°νν λ μ¬μ© (μκ° μ¦κ°) |
minus | instance | μκ°μ λ°λΌ λμ κ°μ²΄μ 볡μ¬λ³Έμ λ°νν λ μ¬μ© (μκ° κ°μ) |
to | instance | λ€λ₯Έ νμ μΌλ‘ λ³νν λ μ¬μ© |
at | instance | λ€λ₯Έ κ°μ²΄μ κ²°ν©ν λ μ¬μ© |
- μ¬μ€μ λ§μ΄ μ¬μ©νλ 건 of, from μ λμ¬μ μλ μ λλ§ μμλλ©΄ μ’μ κ² κ°λ€.
of : λ³ν μμ΄ κ·Έλλ‘ μΈμ€ν΄μ€ μμ± μ μ¬μ©
from : λ³ννμ¬ νΉμ ν νμ μ μΈμ€ν΄μ€ μμ± μ μ¬μ©