Everyday Growing Engineer 2022. 8. 30. 09:04

Util/Helper

  • 특정기능을 수행하거나 상태를 관리하거나 코드를 만들어 별도로 관리.

1. Util

앱 전역에서 사용되는 util성 기능을 모아둠.

  • Utils class, is a static class that perform small and repetitive operations on a kind of instance
  • 예) DateFormatUtil, PixelUtil, BitmapUtil, ToastUtil, SharedPreference 등등 전역적으로 사용하면 만들어줌

2.Helper

helper class는 특정 클래스의 작업을 도와주는 역할을 하는 클래스로 유용한 기능들을 제공.

  • 특정 패키지나 기능에서 한정되어 사용되는 클래스
  • 공통으로 쓰이지 않고 특정 기능의 코드를 분리하기 위한 용도로 사용한다.