samples/ViewPager2Demos/src/main/java/com/example/androidx/viewpager2/cards/Card.java
public static List<Card> createDeck52() {
        List<Card> result = new ArrayList<>(52);
        for (Character suit : SUITS) {
            for (Character value : VALUES) {
                result.add(new Card(suit, value));
            }
        }
        if (result.size() != 52) {
            throw new IllegalStateException();
        }
        return result;
    }
/**
     * Creates a deck of all allowed cards
     */
Creates a deck of all allowed cards
Creates a deck of all allowed cards
public static List<Card> createDeck52() {
        List<Card> result = new ArrayList<>(52);
        for (Character suit : SUITS) {
            for (Character value : VALUES) {
                result.add(new Card(suit, value));
            }
        }
        if (result.size() != 52) {
            throw new IllegalStateException();
        }
        return result;
    }
public static List < Card > createDeck52 ( ) { List < Card > result = new ArrayList < > ( 52 ) ; for ( Character suit : SUITS ) { for ( Character value : VALUES ) { result . add ( new Card ( suit , value ) ) ; } } if ( result . size ( ) != 52 ) { throw new IllegalStateException ( ) ; } return result ; }
Creates a deck of all allowed cards
Creates a deck of all allowed cards