SYMBOL INDEX (268 symbols across 35 files) FILE: src/main/java/abstractfactory/abstractfactory1.java type abstractfactory1 (line 3) | public interface abstractfactory1 { type Vehicle (line 4) | sealed interface Vehicle { method create (line 5) | static Vehicle create(String name) { method main (line 16) | static void main(String[] args) { FILE: src/main/java/abstractfactory/abstractfactory2.java type abstractfactory2 (line 6) | public interface abstractfactory2 { type Vehicle (line 7) | interface Vehicle { } class Registry (line 11) | class Registry { method register (line 14) | public void register(String name, Supplier suppli... method create (line 18) | public Vehicle create(String name) { method main (line 24) | static void main(String[] args) { FILE: src/main/java/adapter/adapter1.java type adapter1 (line 3) | public interface adapter1 { type Logger (line 4) | interface Logger { method log (line 5) | void log(String message); method sayHello (line 8) | static void sayHello(Logger logger) { method main (line 12) | static void main(String[] args) { FILE: src/main/java/adapter/adapter2.java type adapter2 (line 3) | public interface adapter2 { type Logger (line 4) | interface Logger { method log (line 5) | void log(String message); type Level (line 8) | enum Level { WARNING, ERROR } type Logger2 (line 9) | interface Logger2 { method log (line 10) | void log(Level level, String message); method adapt (line 12) | default Logger adapt(Level level) { method adapt (line 17) | static Logger adapt(Logger2 logger2, Level level) { method main (line 21) | static void main(String[] args) { FILE: src/main/java/builder/builder1.java type builder1 (line 3) | public interface builder1 { class SpaceshipBuilder (line 6) | class SpaceshipBuilder { method name (line 12) | public SpaceshipBuilder name(String name) { method captain (line 16) | public SpaceshipBuilder captain(String captain) { method torpedoes (line 20) | public SpaceshipBuilder torpedoes(int torpedoes) { method length (line 24) | public SpaceshipBuilder length(int length) { method build (line 29) | public Spaceship build() { method printSpaceship (line 37) | static void printSpaceship(Spaceship spaceship) { method main (line 41) | static void main(String[] args) { FILE: src/main/java/builder/builder2.java type builder2 (line 16) | public interface builder2 { class Builder (line 17) | class Builder { type Accessor (line 18) | public interface Accessor extends Serializable { method apply (line 19) | V apply(T t); method rethrow (line 22) | @SuppressWarnings("unchecked") // very wrong but works method computeValue (line 31) | @Override method Builder (line 48) | public Builder(Lookup lookup, Class type) { method with (line 56) | public Builder with(Accessor accessor... method build (line 74) | public T build() { method printSpaceship (line 90) | static void printSpaceship(Spaceship spaceship) { method main (line 94) | static void main(String[] args) { FILE: src/main/java/chainofresponsibility/chainofresponsibility1.java type chainofresponsibility1 (line 3) | public interface chainofresponsibility1 { type Level (line 4) | enum Level { type Logger (line 7) | interface Logger { method log (line 8) | void log(Level messageLevel, String message); method log (line 12) | @Override method log (line 24) | @Override method main (line 35) | static void main(String[] args) { FILE: src/main/java/chainofresponsibility/chainofresponsibility2.java type chainofresponsibility2 (line 3) | public interface chainofresponsibility2 { type Level (line 4) | enum Level { type Logger (line 7) | interface Logger { method log (line 8) | void log(Level messageLevel, String message); method withLevel (line 10) | default Logger withLevel(Level level) { method withLogger (line 18) | default Logger withLogger(Logger logger) { method console (line 25) | static Logger console() { method file (line 29) | static Logger file() { method main (line 34) | static void main(String[] args) { FILE: src/main/java/command/command1.java type command1 (line 5) | public interface command1 { class Config (line 6) | class Config { method toString (line 12) | @Override method config (line 19) | static Config config(List args) { method main (line 53) | static void main(String[] args){ FILE: src/main/java/command/command2.java type command2 (line 8) | public interface command2 { class Config (line 9) | class Config { method toString (line 15) | @Override class CommandRegistry (line 24) | class CommandRegistry { method registerOptions (line 28) | public void registerOptions(List options, String description... method command (line 34) | public Command command(String option) { method help (line 38) | public String help() { method config (line 43) | static Config config(CommandRegistry registry, List args) { method commandRegistry (line 59) | static CommandRegistry commandRegistry() { method main (line 68) | static void main(String[] args) { FILE: src/main/java/command/command3.java type command3 (line 9) | public interface command3 { class Config (line 10) | class Config { method toString (line 16) | @Override class Builder (line 26) | public static class Builder { method registerOptions (line 30) | public Builder registerOptions(List options, String descript... method toRegistry (line 37) | public CommandRegistry toRegistry() { method command (line 42) | public Command command(String option) { method config (line 47) | static Config config(CommandRegistry registry, List args) { method commandRegistry (line 63) | static CommandRegistry commandRegistry() { method main (line 72) | static void main(String[] args) { FILE: src/main/java/decorator/decorator1.java type decorator1 (line 3) | public interface decorator1 { type Coffee (line 4) | interface Coffee { method cost (line 5) | long cost(); method ingredients (line 6) | String ingredients(); method ingredients (line 10) | @Override method cost (line 17) | @Override method ingredients (line 21) | @Override method cost (line 28) | @Override method ingredients (line 32) | @Override method main (line 38) | static void main(String[] args){ FILE: src/main/java/decorator/decorator2.java type decorator2 (line 3) | public interface decorator2 { type Coffee (line 4) | sealed interface Coffee { method cost (line 5) | long cost(); method ingredients (line 6) | String ingredients(); method simple (line 8) | static Coffee simple(long cost) { method withMilk (line 11) | default Coffee withMilk() { method withSprinkles (line 14) | default Coffee withSprinkles() { method ingredients (line 20) | @Override method cost (line 27) | @Override method ingredients (line 31) | @Override method cost (line 38) | @Override method ingredients (line 42) | @Override method main (line 48) | static void main(String[] args){ FILE: src/main/java/factory/factory1.java type factory1 (line 7) | public interface factory1 { type Color (line 8) | enum Color { RED, BLUE } type Vehicle (line 9) | interface Vehicle { } method create5 (line 13) | static List create5(Supplier factory) { method main (line 17) | static void main(String[] args) { FILE: src/main/java/factory/factory2.java type factory2 (line 7) | public interface factory2 { type Color (line 8) | enum Color { RED, BLUE } type Vehicle (line 9) | interface Vehicle { } type VehicleFactory (line 13) | @FunctionalInterface method create (line 15) | Vehicle create(Color color); method bind (line 17) | default Supplier bind(Color color) { method create5 (line 22) | static List create5(Supplier factory) { method main (line 26) | static void main(String[] args) { FILE: src/main/java/memoizer/memoizer1.java type memoizer1 (line 7) | public interface memoizer1 { class Memoizer (line 8) | abstract class Memoizer { method memoize (line 11) | public final R memoize(V value) { method compute (line 15) | protected abstract R compute(V value); method main (line 18) | static void main(String[] args) { FILE: src/main/java/memoizer/memoizer2.java type memoizer2 (line 9) | public interface memoizer2 { class Memoizer (line 10) | final class Memoizer { method Memoizer (line 14) | public Memoizer(BiFunction check(Predicate validation, String mess... method validateUser (line 32) | static User validateUser(User user) { method main (line 39) | static void main(String[] args) { FILE: src/main/java/monad/monad3.java type monad3 (line 11) | public interface monad3 { method orElseThrow (line 17) | public V orElseThrow() throws IllegalStateException { method check (line 26) | public Validator check(Predicate validation, String mess... method check (line 33) | public Validator check(Function project... method inBetween (line 38) | static IntPredicate inBetween(int start, int end) { method validateUser (line 42) | static User validateUser(User user) { method main (line 49) | static void main(String[] args) { FILE: src/main/java/observer/observer1.java type observer1 (line 8) | public interface observer1 { type Kind (line 10) | enum Kind { BUY, SELL } class StockExchange (line 13) | class StockExchange { method toString (line 17) | @Override method setBalance (line 22) | public void setBalance(int balance) { method setStockQuantity (line 26) | public void setStockQuantity(String tick, int quantity) { method process (line 30) | public List process(List orders) { method main (line 53) | static void main(String[] args) { FILE: src/main/java/observer/observer2.java type observer2 (line 8) | public interface observer2 { type Kind (line 10) | enum Kind { BUY, SELL } type BalanceObserver (line 13) | interface BalanceObserver { method balanceChanged (line 14) | void balanceChanged(int newValue); class StockExchange (line 17) | class StockExchange { method StockExchange (line 22) | public StockExchange(BalanceObserver balanceObserver) { method toString (line 26) | @Override method setBalance (line 31) | public void setBalance(int balance) { method setStockQuantity (line 35) | public void setStockQuantity(String tick, int quantity) { method process (line 39) | public List process(List orders) { method main (line 64) | static void main(String[] args) { FILE: src/main/java/observer/observer3.java type observer3 (line 8) | public interface observer3 { type Kind (line 10) | enum Kind { BUY, SELL } type BalanceObserver (line 13) | interface BalanceObserver { method balanceChanged (line 14) | void balanceChanged(int newValue); type OrderObserver (line 17) | interface OrderObserver { method rejected (line 18) | void rejected(Order order); class StockExchange (line 21) | class StockExchange { method StockExchange (line 26) | public StockExchange(BalanceObserver balanceObserver) { method toString (line 30) | @Override method setBalance (line 35) | public void setBalance(int balance) { method setStockQuantity (line 39) | public void setStockQuantity(String tick, int quantity) { method process (line 43) | public void process(List orders, OrderObserver orde... method main (line 66) | static void main(String[] args) { FILE: src/main/java/railwayswitch/railwayswitch1.java type railwayswitch1 (line 8) | public interface railwayswitch1 { method findHostname (line 9) | static String findHostname() { method main (line 38) | static void main(String[] args) { FILE: src/main/java/railwayswitch/railwayswitch2.java type railwayswitch2 (line 9) | public interface railwayswitch2 { type Finder (line 10) | @FunctionalInterface method find (line 12) | Optional find(); method or (line 14) | default Finder or(Finder finder) { method environment (line 19) | static Finder environment(String name) { method systemProperty (line 23) | static Finder systemProperty(String name) { method fileProperty (line 27) | static Finder fileProperty(Path path, String name) { method findHostname (line 39) | static String findHostname() { method main (line 47) | static void main(String[] args) { FILE: src/main/java/state/state1.java type state1 (line 6) | public interface state1 { class Cart (line 11) | class Cart { type State (line 12) | private enum State { CREATED, PAYED, SHIPPED } method add (line 18) | public void add(Article article) { method buy (line 25) | public void buy(CreditCard creditCard) { method ship (line 33) | public void ship(Address address) { method info (line 41) | public String info() { method main (line 50) | static void main(String[] args){ FILE: src/main/java/state/state2.java type state2 (line 6) | public interface state2 { class Cart (line 11) | class Cart { type State (line 12) | private sealed interface State { method add (line 13) | default State add(Article article) { method buy (line 16) | default State buy(CreditCard creditCard) { method ship (line 19) | default State ship(Address address) { method add (line 24) | @Override method buy (line 30) | @Override method ship (line 36) | @Override method add (line 45) | public void add(Article article) { method buy (line 48) | public void buy(CreditCard creditCard) { method ship (line 51) | public void ship(Address address) { method info (line 54) | public String info() { method main (line 59) | static void main(String[] args){ FILE: src/main/java/templatemethod/templatemethod1.java type templatemethod1 (line 3) | public interface templatemethod1 { class DecoratedString (line 5) | abstract class DecoratedString { method plainString (line 6) | protected abstract String plainString(); method loveString (line 8) | public String loveString() { method main (line 13) | static void main(String[] args) { FILE: src/main/java/templatemethod/templatemethod2.java type templatemethod2 (line 6) | public interface templatemethod2 { class DecoratedString (line 8) | class DecoratedString { method DecoratedString (line 11) | public DecoratedString(Supplier supplier) { method loveString (line 15) | public String loveString() { method main (line 20) | static void main(String[] args) { FILE: src/main/java/typing/dynamictyping.java type dynamictyping (line 3) | public interface dynamictyping { class A (line 4) | class A { method m (line 5) | public void m() { class B (line 10) | class B { method m (line 11) | public void m() { method print (line 16) | static void print(Object o) throws Exception { method main (line 20) | public static void main(String[] args) throws Exception { FILE: src/main/java/typing/structuraltyping.java type structuraltyping (line 3) | public interface structuraltyping { type I (line 4) | interface I { method m (line 5) | void m(); class A (line 8) | class A { method m (line 9) | public void m() { class B (line 14) | class B { method m (line 15) | public void m() { method print (line 20) | static void print(I i) { method main (line 24) | static void main(String[] args) { FILE: src/main/java/typing/subtyping.java type subtyping (line 3) | public interface subtyping { type I (line 4) | interface I { method m (line 5) | void m(); class A (line 8) | class A implements I { method m (line 9) | public void m() { class B (line 14) | class B implements I { method m (line 15) | public void m() { method print (line 20) | static void print(I i) { method main (line 24) | static void main(String[] args) { FILE: src/main/java/visitor/visitor1.java type visitor1 (line 5) | public interface visitor1 { type Vehicle (line 6) | sealed interface Vehicle { method accept (line 7) | R accept(Visitor visitor); method accept (line 10) | @Override method accept (line 16) | @Override type Visitor (line 22) | interface Visitor { method visitCar (line 23) | R visitCar(Car car); method visitCarHauler (line 24) | R visitCarHauler(CarHauler carHauler); method count (line 27) | static int count(Vehicle vehicle) { method main (line 41) | static void main(String[] args) { FILE: src/main/java/visitor/visitor2.java type visitor2 (line 7) | public interface visitor2 { type Vehicle (line 8) | interface Vehicle { } class Visitor (line 12) | class Visitor { method when (line 15) | public Visitor when(Class type, Function