01:198:213 Lecture 9: Software Methodology Lecture 9
Document Summary
Define behavior in functional interface, an interface with only one method. Implement the method with an instance with an instance of the functional interface as the second argument. For each type of filter, create a class that implements the interface. Write anonymous interface on the fly when calling the filter method. A lambda expression is essentially a simplified syntax to define the method of a functional interface (arguments) -> return body. Similar as above, instead of using interface, insert directly into function. Function gets compiled to instance of an object which can be accepted into the function s arguments. Defining classes inside of class definitions e. g. defining static node class inside of. However in outside class, node has to be referenced statically through linkedlist i. e. linkedlist. node.