r4fterman/pdf.forms

View on GitHub
src/main/java/org/pdf/forms/model/des/ButtonGroups.java

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package org.pdf.forms.model.des;

import static java.util.stream.Collectors.toUnmodifiableList;

import java.util.List;

public interface ButtonGroups {
    default List<String> getButtonGroupNames() {
        return getProperty().stream()
                .filter(p -> p.getName().equals("buttongroupname"))
                .map(Property::getValue)
                .collect(toUnmodifiableList());
    }

    List<Property> getProperty();
}