Skip to content

Instantly share code, notes, and snippets.

@yusufcakal
Created August 16, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufcakal/b83fae8da7926769476c69226352979a to your computer and use it in GitHub Desktop.
Save yusufcakal/b83fae8da7926769476c69226352979a to your computer and use it in GitHub Desktop.
SellerLabel
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