The SPECIALIST Lexicon

Example - Filter

I. Task
Add filter while iterating through each item of a collection.

II. Notes

  • Java 7 - if
  • Java 8 -
    • Filter (T -> boolean)
    • Filter (Predicate<T>)

III. Java Codes

  • Ex2_1_Filter.java
    => retrieve all records that are base forms and category are adverb
    • Field 2: category is "adv"
    • Field 3: inflection is "base"
  • Ex2_2_Filters.java
    => retrieve all records that are base forms and categories are either adverb or adjective

IV. Results