Class UnmodifiableCollectorsExamples.Feature

java.lang.Object
net.jrodolfo.java_evolution.java10.UnmodifiableCollectorsExamples.Feature
Enclosing class:
UnmodifiableCollectorsExamples

public static class UnmodifiableCollectorsExamples.Feature extends Object
Small Java 10-style data class used by the collector examples.
  • Constructor Details

    • Feature

      public Feature(String name, String category, boolean active)
      Creates a feature used by unmodifiable collector examples.
      Parameters:
      name - the feature name
      category - the feature category
      active - whether the feature is active
  • Method Details

    • name

      public String name()
      Returns:
      the feature name
    • category

      public String category()
      Returns:
      the feature category
    • active

      public boolean active()
      Returns:
      whether the feature is active in the example