dave08
09/12/2017, 12:30 PMenum class PackageFlags(val mask: Int) {
NONE(0), SYSTEM_APP(1), IS_DEBUGGABLE(2), SYSTEM_APP_UPDATED(128), IN_SD_CARD(262144),
IS_DATA_ONLY(16777216), IS_STOPPED(2097152)
}
elect
09/12/2017, 1:46 PMEnumSet
dave08
09/12/2017, 8:41 PMdave08
09/12/2017, 8:43 PMelect
09/13/2017, 8:03 AMEnumSet
is that readability, usability and safety is increased, because the EnumSet
type explicitely specifies which kind of enumrators expect.
But to have this, you pay something in performances (nothing is fastest than using simple `Int`s)elect
09/13/2017, 8:05 AMelect
09/13/2017, 8:05 AMdave08
09/17/2017, 4:59 PM