Skip to content

Instantly share code, notes, and snippets.

@yusufcakal
Last active August 24, 2020 20:44
Show Gist options
  • Save yusufcakal/889726e25dcbe94616fb95b9b8c8ccf3 to your computer and use it in GitHub Desktop.
Save yusufcakal/889726e25dcbe94616fb95b9b8c8ccf3 to your computer and use it in GitHub Desktop.
SellerLabelTwentyProcessor
@Service
public class SellerLabelTwentyProcessor implements SellerLabelProcessor {
@Override
public SellerLabel getSellerLabel(int sellCount) {
return sellCount >= 20 ? SellerLabel.SELLER_20 : SellerLabel.NEW_SELLER;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment