Skip to the content.
package com.bookshop.structural.proxy;

import com.bookshop.domain.Book;
import java.util.Optional;

/** Both the real catalog and its proxy implement this -- clients can't tell them apart. */
public interface BookCatalog {

    Optional<Book> findByIsbn(String isbn);
}

Raw file