Interface DeckValidator

All Known Implementing Classes:
ArbitraryDeckValidator, DefaultDeckValidator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DeckValidator
A function that determines whether the given card can be added to the given deck.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
  • Method Details

    • canAddCardToDeck

      boolean canAddCardToDeck(Card card, GameDeck deck)