Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yusufcakal
Last active August 18, 2020 21:00
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/04a811611eae9b4d768540b8960aaeba to your computer and use it in GitHub Desktop.
Save yusufcakal/04a811611eae9b4d768540b8960aaeba to your computer and use it in GitHub Desktop.
SellerLabelFiveProcessor
@Service
public class SellerLabelFiveProcessor implements SellerLabelProcessor {
@Override
public SellerLabel getSellerLabel(int sellCount) {
return sellCount >= 5 && sellCount < 20 ? SellerLabel.SELLER_5 : SellerLabel.NEW_SELLER;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment