Created
August 16, 2020 13:28
-
-
Save yusufcakal/b83fae8da7926769476c69226352979a to your computer and use it in GitHub Desktop.
SellerLabel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum SellerLabel { | |
NEW_SELLER, | |
SELLER_1, | |
SELLER_5, | |
SELLER_20; | |
public boolean isSellerLabelNotNewSeller() { | |
return SellerLabel.NEW_SELLER != this; | |
} | |
public boolean isSellerLabelOne() { | |
return SellerLabel.SELLER_1 == this; | |
} | |
public boolean isSellerLabelTwenty() { | |
return SellerLabel.SELLER_20 == this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment