Skip navigation links
A B E F G H J N P S T V 

A

addAlcohol(double) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addAlcohol(double) - Method in class se.itu.systemet.storage.JsonExporter
 
addName(String) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addName(String) - Method in class se.itu.systemet.storage.JsonExporter
 
addNr(int) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addNr(int) - Method in class se.itu.systemet.storage.JsonExporter
 
addPrice(double) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addPrice(double) - Method in class se.itu.systemet.storage.JsonExporter
 
addProductGroup(String) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addProductGroup(String) - Method in class se.itu.systemet.storage.JsonExporter
 
addType(String) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addType(String) - Method in class se.itu.systemet.storage.JsonExporter
 
addVolume(int) - Method in interface se.itu.systemet.domain.Product.Exporter
 
addVolume(int) - Method in class se.itu.systemet.storage.JsonExporter
 
alcohol() - Method in class se.itu.systemet.domain.Product
Returns the alcohol level of this Product
alcohol(double) - Method in class se.itu.systemet.domain.Product.Builder
 
ALCOHOL_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their alcohol level.

B

build() - Method in class se.itu.systemet.domain.Product.Builder
 
Builder() - Constructor for class se.itu.systemet.domain.Product.Builder
 

E

equals(Object) - Method in class se.itu.systemet.domain.Product
Uses name, alcohol, volume, price and nr when deciding if this Product is equal to another Product.
export(Product.Exporter) - Method in class se.itu.systemet.domain.Product
This methods allows a Product to export itself to an Exporter object, which could be used to create various representations or other uses of this Product, like for instance, a CSV row, an XML element, an SQL insert statement, a PreparedStatement, a GUI component or whatever.

F

FakeProductLine - Class in se.itu.systemet.storage
An implementation of ProuctLine which fakes some hard coded products.

G

getAllProducts() - Method in class se.itu.systemet.storage.FakeProductLine
 
getAllProducts() - Method in interface se.itu.systemet.storage.ProductLine
Returns a list of all the products in the product line.
getAllProducts() - Method in class se.itu.systemet.storage.SQLBasedProductLine
 
getProductLine() - Static method in class se.itu.systemet.storage.ProductLineFactory
Creates a ProductLine object.
getProductsFilteredBy(Predicate<Product>) - Method in class se.itu.systemet.storage.FakeProductLine
 
getProductsFilteredBy(Predicate<Product>) - Method in interface se.itu.systemet.storage.ProductLine
Returns a List<Product> with all products of the product line that satisfies the predicate.
getProductsFilteredBy(Predicate<Product>) - Method in class se.itu.systemet.storage.SQLBasedProductLine
 

H

hashCode() - Method in class se.itu.systemet.domain.Product
 

J

JsonExporter - Class in se.itu.systemet.storage
This class is used when we want to export the state of a Product for use in a different context or format.
JsonExporter() - Constructor for class se.itu.systemet.storage.JsonExporter
 

N

name(String) - Method in class se.itu.systemet.domain.Product.Builder
Provides the Product name
name() - Method in class se.itu.systemet.domain.Product
Returns the name of this Product
NAME_CASE_INSENSITIVE_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their name, ignoring case.
NAME_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their name.
nr(int) - Method in class se.itu.systemet.domain.Product.Builder
 
nr() - Method in class se.itu.systemet.domain.Product
Returns the product number of this Product

P

price(double) - Method in class se.itu.systemet.domain.Product.Builder
 
price() - Method in class se.itu.systemet.domain.Product
Returns the price of this Product
PRICE_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their price.
Product - Class in se.itu.systemet.domain
Represents a Product in a ProductLine.
Product(Product.Builder) - Constructor for class se.itu.systemet.domain.Product
Constructs a Product using a Product.Builder
Product(String, double, double, int) - Constructor for class se.itu.systemet.domain.Product
Constructs a new Product.
Product.Builder - Class in se.itu.systemet.domain
Defines a Builder for an Object.
Product.Exporter - Interface in se.itu.systemet.domain
Defines the interface for objects we can export a Product instance to.
productGroup(String) - Method in class se.itu.systemet.domain.Product.Builder
 
productGroup() - Method in class se.itu.systemet.domain.Product
Returns the product group of this Product
ProductLine - Interface in se.itu.systemet.storage
Represents a ProductLine of beverages.
ProductLineFactory - Class in se.itu.systemet.storage
Factory class for creating ProductLine objects.

S

se.itu.systemet.domain - package se.itu.systemet.domain
Contains classes for domain objects (objects in the real world, which we want to represent in Java).
se.itu.systemet.storage - package se.itu.systemet.storage
Contains classes related to the storage of the products in a product line.
SQLBasedProductLine - Class in se.itu.systemet.storage
An implementation of ProuctLine which reads products from the database.

T

toJsonString() - Method in class se.itu.systemet.storage.JsonExporter
Returns a String with a Json representation of an object.
toString() - Method in class se.itu.systemet.domain.Product
Returns this Product as a String on the format:
toString() - Method in class se.itu.systemet.storage.JsonExporter
Returns the exported Product as a plain String for debuggin purposes
type(String) - Method in class se.itu.systemet.domain.Product.Builder
 
type() - Method in class se.itu.systemet.domain.Product
Returns the product type of this Product

V

volume(int) - Method in class se.itu.systemet.domain.Product.Builder
 
volume() - Method in class se.itu.systemet.domain.Product
Returns the volume of this Product
VOLUME_ORDER - Static variable in class se.itu.systemet.domain.Product
A Comparator that orders Products based on their volume.
A B E F G H J N P S T V 
Skip navigation links