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/72455af0183d51f05ac6f947e67d8dc0 to your computer and use it in GitHub Desktop.
Save yusufcakal/72455af0183d51f05ac6f947e67d8dc0 to your computer and use it in GitHub Desktop.
SellerLabelOneProcessor
@Service
public class SellerLabelOneProcessor implements SellerLabelProcessor {
@Override
public SellerLabel getSellerLabel(int sellCount) {
return sellCount >= 1 && sellCount < 5 ? SellerLabel.SELLER_1 : SellerLabel.NEW_SELLER;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment