Index

A B C D E F G H I K L M N O P R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values

A

AbstractIntSet - Class in it.unimi.di.prog2.h17
An AbstractIntSet is a mutable, unbounded set of integers.
AbstractIntSet() - Constructor for class it.unimi.di.prog2.h17.AbstractIntSet
Creates an empty set.
AbstractPoly - Class in it.unimi.di.prog2.h18
A partial implementation of non-zero Polys.
AbstractPoly(int) - Constructor for class it.unimi.di.prog2.h18.AbstractPoly
Initializes this to be the a polynomial with given degree.
add(RationalNumber) - Method in class it.unimi.di.prog2.e12.RationalNumber
Returns the sum of this rational number and another one.
add(DensePoly) - Method in class it.unimi.di.prog2.h09.DensePoly
Performs polynomial addition.
add(Poly) - Method in class it.unimi.di.prog2.h09.Poly
Performs polynomial addition.
add(SparsePoly) - Method in class it.unimi.di.prog2.h09.SparsePoly
Performs polynomial addition.
add(DensePoly) - Method in class it.unimi.di.prog2.h10.DensePoly
Performs polynomial addition.
add(SparsePoly) - Method in class it.unimi.di.prog2.h10.SparsePoly
Performs polynomial addition.
add(DensePoly) - Method in class it.unimi.di.prog2.h11.DensePoly
Performs polynomial addition.
add(Poly) - Method in class it.unimi.di.prog2.h18.DensePoly
Performs polynomial addition.
add(Poly) - Method in interface it.unimi.di.prog2.h18.Poly
Performs polynomial addition.
add(Poly) - Method in class it.unimi.di.prog2.h18.SparsePoly
 
add(RationalNumber) - Method in class it.unimi.di.prog2.s12.RationalNumber
Returns the sum of this rational number and another one.
add(CelestialBody) - Method in class it.unimi.di.prog2.s17.AstronomicalSystem
Adds a celestial body to the system.
add(String) - Method in class it.unimi.di.prog2.h14.StringFormatter
Adds a string, or null, to the formatter.
addChapter(String) - Method in class it.unimi.di.prog2.h14.member.Book
Adds a chapter with the given title to this book.
addTerm(List, SparsePoly.Term) - Static method in class it.unimi.di.prog2.h09.SparsePoly
Adds a term to a list of terms in increasing degree order.
addTerm(List, SparsePoly.Term) - Static method in class it.unimi.di.prog2.h10.SparsePoly
Adds a term to a list of terms in increasing degree order.
addTerm(List, Poly.Term) - Static method in class it.unimi.di.prog2.h18.SparsePoly
Adds a term to the list.
Anagrams - Class in it.unimi.di.prog2.h24
A simple program that reads a list of words from standard input and prints all anagrams of size at least 2.
Anagrams() - Constructor for class it.unimi.di.prog2.h24.Anagrams
.
ArrayIntSet - Class in it.unimi.di.prog2.h08
ArrayIntSets are mutable, unbounded sets of integers.
ArrayIntSet - Class in it.unimi.di.prog2.h10
ArrayIntSets are mutable, unbounded sets of integers.
ArrayIntSet - Class in it.unimi.di.prog2.h13
ArrayIntSets are mutable, unbounded sets of integers.
ArrayIntSet - Class in it.unimi.di.prog2.h17
ArrayIntSets are mutable, unbounded sets of integers.
ArrayIntSet() - Constructor for class it.unimi.di.prog2.h08.ArrayIntSet
Initializes this set to be empty.
ArrayIntSet() - Constructor for class it.unimi.di.prog2.h10.ArrayIntSet
Initializes this set to be empty.
ArrayIntSet() - Constructor for class it.unimi.di.prog2.h13.ArrayIntSet
Initializes this set to be empty.
ArrayIntSet() - Constructor for class it.unimi.di.prog2.h17.ArrayIntSet
Initializes this set to be empty.
ArrayIntSetClient - Class in it.unimi.di.prog2.h08
A class to test some methods of ListIntSet.
ArrayIntSetClient - Class in it.unimi.di.prog2.h10
A class to test some methods of ListIntSet.
ArrayIntSetClient - Class in it.unimi.di.prog2.h13
Classe per il test di ArrayIntSet IntGenerator.
ArrayIntSetClient() - Constructor for class it.unimi.di.prog2.h08.ArrayIntSetClient
.
ArrayIntSetClient() - Constructor for class it.unimi.di.prog2.h10.ArrayIntSetClient
.
ArrayIntSetClient() - Constructor for class it.unimi.di.prog2.h13.ArrayIntSetClient
.
ArrayUtils - Class in it.unimi.di.prog2.e05
Classe di metodi di utilità per array.
ArrayUtils - Class in it.unimi.di.prog2.e06
Classe di metodi di utilità per array.
ArrayUtils - Class in it.unimi.di.prog2.s05
Classe di metodi di utilità per array.
ArrayUtils - Class in it.unimi.di.prog2.s06
Classe di metodi di utilità per array.
ArrayUtils() - Constructor for class it.unimi.di.prog2.e05.ArrayUtils
.
ArrayUtils() - Constructor for class it.unimi.di.prog2.e06.ArrayUtils
.
ArrayUtils() - Constructor for class it.unimi.di.prog2.s05.ArrayUtils
.
ArrayUtils() - Constructor for class it.unimi.di.prog2.s06.ArrayUtils
.
ArrayUtilsClient - Class in it.unimi.di.prog2.e05
Client for the ArrayUtils class.
ArrayUtilsClient - Class in it.unimi.di.prog2.e06
Client code for ArrayUtils.
ArrayUtilsClient - Class in it.unimi.di.prog2.s05
Client for the ArrayUtils class.
ArrayUtilsClient - Class in it.unimi.di.prog2.s06
Client code for ArrayUtils.
ArrayUtilsClient() - Constructor for class it.unimi.di.prog2.e05.ArrayUtilsClient
.
ArrayUtilsClient() - Constructor for class it.unimi.di.prog2.e06.ArrayUtilsClient
.
ArrayUtilsClient() - Constructor for class it.unimi.di.prog2.s05.ArrayUtilsClient
.
ArrayUtilsClient() - Constructor for class it.unimi.di.prog2.s06.ArrayUtilsClient
.
asString(DensePoly) - Static method in class it.unimi.di.prog2.h09.DensePolyClient
Returns a string representation of the given polynomial.
asString(SparsePoly) - Static method in class it.unimi.di.prog2.h09.SparsePolyClient
Returns a string representation of the given polynomial.
asString(DensePoly) - Static method in class it.unimi.di.prog2.h10.DensePolyClient
Returns a string representation of the given polynomial.
asString(SparsePoly) - Static method in class it.unimi.di.prog2.h10.SparsePolyClient
Returns a string representation of the given polynomial.
AstronomicalSystem - Class in it.unimi.di.prog2.s17
An astronomical system.
AstronomicalSystem() - Constructor for class it.unimi.di.prog2.s17.AstronomicalSystem
Creates an empty system.
Astronomical System - Section in package it.unimi.di.prog2.e17
 
Astronomical System - Section in package it.unimi.di.prog2.s17
 
AstronomicalSystemClient - Class in it.unimi.di.prog2.e17
Allows verification of the behavior of an astronomical system.
AstronomicalSystemClient - Class in it.unimi.di.prog2.s17
Allows verification of the behavior of an astronomical system.
AstronomicalSystemClient() - Constructor for class it.unimi.di.prog2.e17.AstronomicalSystemClient
.
AstronomicalSystemClient() - Constructor for class it.unimi.di.prog2.s17.AstronomicalSystemClient
.

B

BandieraList - Class in it.unimi.di.prog2.h04
Classe per stampare una sequenza di parole in bandiera destra.
BandieraList() - Constructor for class it.unimi.di.prog2.h04.BandieraList
Costruttore privato per impedire l'istanziazione della classe.
BandieraVector - Class in it.unimi.di.prog2.h04
Classe per stampare una sequenza di parole in bandiera destra.
BandieraVector() - Constructor for class it.unimi.di.prog2.h04.BandieraVector
Costruttore privato per impedire l'istanziazione della classe.
biggest - Variable in class it.unimi.di.prog2.h16.MaxIntSet
The biggest element, if set is not empty.
binarySearch(int[], int) - Static method in class it.unimi.di.prog2.e06.ArrayUtils
Finds the index (or insertion point) of an integer in an array of integers in increasing order.
binarySearch(int[], int) - Static method in class it.unimi.di.prog2.s05.ArrayUtils
Finds the index (or insertion point) of an integer in an array of integers in increasing order.
binarySearch(int[], int) - Static method in class it.unimi.di.prog2.s06.ArrayUtils
Finds the index (or insertion point) of an integer in an array of integers in increasing order.
binarySearch(List, String) - Static method in class it.unimi.di.prog2.h06.ListUtils
Cerca una stringa in una lista ordinata lessicograficamente.
book() - Method in class it.unimi.di.prog2.h14.member.Book.Chapter
Returns the book of which this chapter is a part.
Book - Class in it.unimi.di.prog2.h14.member
A (promise of a) book, made up of chapters.
Book(String) - Constructor for class it.unimi.di.prog2.h14.member.Book
Creates a book with the given title.
Book.Chapter - Class in it.unimi.di.prog2.h14.member
A chapter of a book.
BookClient - Class in it.unimi.di.prog2.h14.member
A simple client for the Book class.
BookClient() - Constructor for class it.unimi.di.prog2.h14.member.BookClient
.
BoundedIntQueue - Class in it.unimi.di.prog2.e12
A queue is a mutable data structure that provides access to its elements in first-in/first-out order.
BoundedIntQueue - Class in it.unimi.di.prog2.s12
A queue is a mutable data structure that provides access to its elements in first-in/first-out order.
BoundedIntQueue(int) - Constructor for class it.unimi.di.prog2.e12.BoundedIntQueue
Creates a new bounded queue with the given capacity.
BoundedIntQueue(int) - Constructor for class it.unimi.di.prog2.s12.BoundedIntQueue
Creates a new bounded queue with the given capacity.
BoundedIntQueueClient - Class in it.unimi.di.prog2.e12
A class to exercise a BoundedIntQueue.
BoundedIntQueueClient - Class in it.unimi.di.prog2.s12
A class to exercise a BoundedIntQueue.
BoundedIntQueueClient() - Constructor for class it.unimi.di.prog2.e12.BoundedIntQueueClient
.
BoundedIntQueueClient() - Constructor for class it.unimi.di.prog2.s12.BoundedIntQueueClient
.
build() - Method in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
Builder(int, int) - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 

C

calories - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
calories - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts
 
calories - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
calories - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
calories(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
candidate - Variable in class it.unimi.di.prog2.h13.Primes
Il prossimo potenziale numero primo.
capacity - Variable in class it.unimi.di.prog2.h12.GuestList
The maximum capacity of the guest list.
capacity - Variable in class it.unimi.di.prog2.h14.member.GuestList
The maximum capacity of the guest list.
carbohydrate - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
carbohydrate - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts
 
carbohydrate - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
carbohydrate - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
carbohydrate(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
celestialBodies - Variable in class it.unimi.di.prog2.s17.AstronomicalSystem
The set of celestial bodies.
CelestialBody - Class in it.unimi.di.prog2.s17
A celestial body.
CelestialBody(String, int, int, int) - Constructor for class it.unimi.di.prog2.s17.CelestialBody
Constructs a celestial body with the given name.
cents - Variable in class it.unimi.di.prog2.h12.CurrencyAmount
The amount expressed in cents.
cents() - Method in class it.unimi.di.prog2.h12.CurrencyAmount
Returns the cents of the amount.
Chapter(String) - Constructor for class it.unimi.di.prog2.h14.member.Book.Chapter
Creates a chapter with the given title.
chapters - Variable in class it.unimi.di.prog2.h14.member.Book
The chapters of this book.
choose() - Method in class it.unimi.di.prog2.h08.ArrayIntSet
Returns an element from this set.
choose() - Method in class it.unimi.di.prog2.h08.ListIntSet
Returns an element from this set.
choose() - Method in class it.unimi.di.prog2.h10.ArrayIntSet
Returns an element from this set.
choose() - Method in class it.unimi.di.prog2.h10.ListIntSet
Returns an element from this set.
choose() - Method in class it.unimi.di.prog2.h13.ArrayIntSet
Returns an element from this set.
choose() - Method in class it.unimi.di.prog2.h17.AbstractIntSet
Returns an element from this set.
choose() - Method in class it.unimi.di.prog2.h17.ArrayIntSet
Returns an element from this set.
choose() - Method in class it.unimi.di.prog2.h17.ListIntSet
Returns an element from this set.
clear() - Method in class it.unimi.di.prog2.e12.StringToIntMap
Removes all of the mappings from this map.
clear() - Method in class it.unimi.di.prog2.s12.StringToIntMap
Removes all of the mappings from this map.
coeff(int) - Method in class it.unimi.di.prog2.h09.DensePoly
Returns the coefficient of the term of given exponent.
coeff(int) - Method in class it.unimi.di.prog2.h09.Poly
Returns the coefficient of the term of given exponent.
coeff(int) - Method in class it.unimi.di.prog2.h09.SparsePoly
Returns the coefficient of the term of given exponent.
coeff(int) - Method in class it.unimi.di.prog2.h10.DensePoly
Returns the coefficient of the term of given exponent.
coeff(int) - Method in class it.unimi.di.prog2.h10.SparsePoly
Returns the coefficient of the term of given exponent.
coeff(int) - Method in class it.unimi.di.prog2.h11.DensePoly
Returns the coefficient of the term of given exponent.
coefficient - Variable in class it.unimi.di.prog2.h09.DensePoly
The array of coefficients, the coeff[i] is the coefficient of \( x^i \).
coefficient - Variable in record class it.unimi.di.prog2.h09.SparsePoly.Term
The field for the coefficient record component.
coefficient - Variable in class it.unimi.di.prog2.h10.DensePoly
The array of coefficients, the coeff[i] is the coefficient of \( x^i \).
coefficient - Variable in record class it.unimi.di.prog2.h10.SparsePoly.Term
The field for the coefficient record component.
coefficient - Variable in class it.unimi.di.prog2.h11.DensePoly
The array of coefficients, the coeff[i] is the coefficient of \( x^i \).
coefficient - Variable in class it.unimi.di.prog2.h18.DensePoly
The array of coefficients, the coeff[i] is the coefficient of \( x^i \).
coefficient - Variable in record class it.unimi.di.prog2.h18.Poly.Term
The field for the coefficient record component.
coefficient() - Method in record class it.unimi.di.prog2.h09.SparsePoly.Term
Returns the value of the coefficient record component.
coefficient() - Method in record class it.unimi.di.prog2.h10.SparsePoly.Term
Returns the value of the coefficient record component.
coefficient() - Method in record class it.unimi.di.prog2.h18.Poly.Term
Returns the value of the coefficient record component.
coefficient(int) - Method in class it.unimi.di.prog2.h18.DensePoly
 
coefficient(int) - Method in interface it.unimi.di.prog2.h18.Poly
Returns the coefficient of the term of given exponent.
compareTo(CelestialBody) - Method in class it.unimi.di.prog2.s17.CelestialBody
 
containsKey(String) - Method in class it.unimi.di.prog2.e12.StringToIntMap
Returns if this map contains the specified key.
containsKey(String) - Method in class it.unimi.di.prog2.s12.StringToIntMap
Returns if this map contains the specified key.
containsValue(int) - Method in class it.unimi.di.prog2.e12.StringToIntMap
Returns if this map contains the specified value.
containsValue(int) - Method in class it.unimi.di.prog2.s12.StringToIntMap
Returns if this map contains the specified value.
copyOf(DensePoly) - Static method in class it.unimi.di.prog2.h18.DensePoly
Copies the dense polynomial.
copyOf(Poly) - Static method in class it.unimi.di.prog2.h18.DensePoly
Copies the polynomial.
copyOf(Poly) - Static method in class it.unimi.di.prog2.h18.SparsePoly
Copies the polynomial.
copyOf(SparsePoly) - Static method in class it.unimi.di.prog2.h18.SparsePoly
Copies the sparse polynomial.
CurrencyAmount - Class in it.unimi.di.prog2.h12
Immutable class that represents a (positive or negative) amount in a currency that has an integer part and cents.
CurrencyAmount(int) - Constructor for class it.unimi.di.prog2.h12.CurrencyAmount
Private constructor.
CurrencyAmountClient - Class in it.unimi.di.prog2.h12
Client class for testing the CurrencyAmount class.
CurrencyAmountClient() - Constructor for class it.unimi.di.prog2.h12.CurrencyAmountClient
.

D

DecimalDigits - Class in it.unimi.di.prog2.h14
A class representing decimal digits of a long.
DecimalDigits(long) - Constructor for class it.unimi.di.prog2.h14.DecimalDigits
Creates a new instance representing the digits of the given number.
DecimalDigitsAG - Class in it.unimi.di.prog2.h14
A class representing decimal digits of a long, endowed with a non zero digits iterator, based on an anonymous class.
DecimalDigitsAG(long) - Constructor for class it.unimi.di.prog2.h14.DecimalDigitsAG
Creates a new instance representing the digits of the given number.
DecimalDigitsEG - Class in it.unimi.di.prog2.h14
A class representing decimal digits of a long, endowed with a non zero digits iterator, based on the external NonZeroDigitsGenerator class.
DecimalDigitsEG(long) - Constructor for class it.unimi.di.prog2.h14.DecimalDigitsEG
Creates a new instance representing the digits of the given number.
DecimalDigitsIG - Class in it.unimi.di.prog2.h14
A class representing decimal digits of a long, endowed with a non zero digits iterator, based on the inner NonZeroDigitsGeneratorIG class.
DecimalDigitsIG(long) - Constructor for class it.unimi.di.prog2.h14.DecimalDigitsIG
Creates a new instance representing the digits of the given number.
DecimalDigitsIG.NonZeroDigitsGeneratorIG - Class in it.unimi.di.prog2.h14
An inner class implementing the generator.
DecimalDigitsNSG - Class in it.unimi.di.prog2.h14
A class representing decimal digits of a long, endowed with a non zero digits iterator, based on the nested static NonZeroDigitsGeneratorNS class.
DecimalDigitsNSG(long) - Constructor for class it.unimi.di.prog2.h14.DecimalDigitsNSG
Creates a new instance representing the digits of the given number.
DecimalDigitsNSG.NonZeroDigitsGeneratorNS - Class in it.unimi.di.prog2.h14
A nested static class implementing the genrator.
degree - Variable in record class it.unimi.di.prog2.h09.SparsePoly.Term
The field for the degree record component.
degree - Variable in record class it.unimi.di.prog2.h10.SparsePoly.Term
The field for the degree record component.
degree - Variable in class it.unimi.di.prog2.h18.AbstractPoly
The degree of the polynomial.
degree - Variable in record class it.unimi.di.prog2.h18.Poly.Term
The field for the degree record component.
degree() - Method in class it.unimi.di.prog2.h09.DensePoly
Returns the degree of this polynomial.
degree() - Method in class it.unimi.di.prog2.h09.Poly
Returns the degree of this polynomial.
degree() - Method in class it.unimi.di.prog2.h09.SparsePoly
Returns the degree of this polynomial.
degree() - Method in record class it.unimi.di.prog2.h09.SparsePoly.Term
Returns the value of the degree record component.
degree() - Method in class it.unimi.di.prog2.h10.DensePoly
Returns the degree of this polynomial.
degree() - Method in class it.unimi.di.prog2.h10.SparsePoly
Returns the degree of this polynomial.
degree() - Method in record class it.unimi.di.prog2.h10.SparsePoly.Term
Returns the value of the degree record component.
degree() - Method in class it.unimi.di.prog2.h11.DensePoly
Returns the degree of this polynomial.
degree() - Method in class it.unimi.di.prog2.h18.AbstractPoly
 
degree() - Method in interface it.unimi.di.prog2.h18.Poly
Returns the degree of this polynomial.
degree() - Method in record class it.unimi.di.prog2.h18.Poly.Term
Returns the value of the degree record component.
denominator - Variable in class it.unimi.di.prog2.s12.RationalNumber
The denominator.
DensePoly - Class in it.unimi.di.prog2.h09
DensePolys are immutable polynomials with integer coefficients.
DensePoly - Class in it.unimi.di.prog2.h10
DensePolys are immutable polynomials with integer coefficients.
DensePoly - Class in it.unimi.di.prog2.h11
DensePolys are immutable polynomials with integer coefficients.
DensePoly - Class in it.unimi.di.prog2.h18
A dense implementation of non-zero Polys.
DensePoly() - Constructor for class it.unimi.di.prog2.h09.DensePoly
Initializes this to be the zero polynomial, that is \( p = 0 \).
DensePoly() - Constructor for class it.unimi.di.prog2.h10.DensePoly
Initializes this to be the zero polynomial, that is \( p = 0 \).
DensePoly(int) - Constructor for class it.unimi.di.prog2.h09.DensePoly
Initializes a polynomial of given degree (with all coefficients equal to 0).
DensePoly(int[]) - Constructor for class it.unimi.di.prog2.h10.DensePoly
Initializes a polynomial given an array of coefficients.
DensePoly(int[]) - Constructor for class it.unimi.di.prog2.h11.DensePoly
Initializes the polynomial given an array of coefficients.
DensePoly(int[]) - Constructor for class it.unimi.di.prog2.h18.DensePoly
Initializes the polynomial given an array of coefficients.
DensePoly(int, int) - Constructor for class it.unimi.di.prog2.h09.DensePoly
Initializes this to be the polynomial \(p = cx^n\).
DensePoly(int, int) - Constructor for class it.unimi.di.prog2.h10.DensePoly
Initializes this to be the polynomial \(p = cx^n\).
DensePoly(DensePoly) - Constructor for class it.unimi.di.prog2.h11.DensePoly
Copy constructor.
DensePolyClient - Class in it.unimi.di.prog2.h09
A class to test some methods of DensePoly.
DensePolyClient - Class in it.unimi.di.prog2.h10
A class to test some methods of DensePoly.
DensePolyClient - Class in it.unimi.di.prog2.h11
A class to test some methods of DensePoly.
DensePolyClient() - Constructor for class it.unimi.di.prog2.h09.DensePolyClient
.
DensePolyClient() - Constructor for class it.unimi.di.prog2.h10.DensePolyClient
.
DensePolyClient() - Constructor for class it.unimi.di.prog2.h11.DensePolyClient
.
dequeue() - Method in class it.unimi.di.prog2.e12.BoundedIntQueue
Removes the element at the head of the queue.
dequeue() - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
Removes the element at the head of the queue.
diameter - Variable in class it.unimi.di.prog2.h14.member.Watch.Gear
The diameter of this gear, must be positive.
dichotomicSearch(List, String) - Static method in class it.unimi.di.prog2.s12.StringToIntMap
Finds the index (or insertion point) of a string in a list of strings kept in increasing lexicographyc order.
digit(int) - Method in class it.unimi.di.prog2.h14.DecimalDigits
Returns the digit corresponding to the given power of 10.
digit(int) - Method in class it.unimi.di.prog2.h14.DecimalDigitsEG
Returns the digit corresponding to the given power of 10.
digit(int) - Method in class it.unimi.di.prog2.h14.DecimalDigitsIG
Returns the digit corresponding to the given power of 10.
digit(int) - Method in class it.unimi.di.prog2.h14.DecimalDigitsNSG
Returns the digit corresponding to the given power of 10.

E

elements - Variable in class it.unimi.di.prog2.s12.BoundedIntQueue
The elements in the queue.
els - Variable in class it.unimi.di.prog2.h08.ArrayIntSet
The List containing this set elements.
els - Variable in class it.unimi.di.prog2.h08.ListIntSet
The List containing this set elements.
els - Variable in class it.unimi.di.prog2.h10.ArrayIntSet
The List containing this set elements.
els - Variable in class it.unimi.di.prog2.h10.ListIntSet
The List containing this set elements.
els - Variable in class it.unimi.di.prog2.h13.ArrayIntSet
The List containing this set elements.
els - Variable in class it.unimi.di.prog2.h13.IntGenerator
The list elements.
els - Variable in class it.unimi.di.prog2.h17.ArrayIntSet
The List containing this set elements.
els - Variable in class it.unimi.di.prog2.h17.ListIntSet
The List containing this set elements.
energy() - Method in class it.unimi.di.prog2.s17.CelestialBody
Returns the total energy of this celestial body.
energy() - Method in class it.unimi.di.prog2.s17.Star
 
enqueue(int) - Method in class it.unimi.di.prog2.e12.BoundedIntQueue
Adds an element to the queue.
enqueue(int) - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
Adds an element to the queue.
equals(Object) - Method in record class it.unimi.di.prog2.h09.SparsePoly.Term
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class it.unimi.di.prog2.h10.SparsePoly.Term
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class it.unimi.di.prog2.h11.DensePoly
 
equals(Object) - Method in class it.unimi.di.prog2.h12.CurrencyAmount
 
equals(Object) - Method in class it.unimi.di.prog2.h13.ArrayIntSet
 
equals(Object) - Method in class it.unimi.di.prog2.h17.AbstractIntSet
 
equals(Object) - Method in class it.unimi.di.prog2.h18.AbstractPoly
 
equals(Object) - Method in record class it.unimi.di.prog2.h18.Poly.Term
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
 
equals(Object) - Method in class it.unimi.di.prog2.s12.RationalNumber
 
equals(Object) - Method in class it.unimi.di.prog2.s12.StringToIntMap
 
equals(Object) - Method in class it.unimi.di.prog2.s17.CelestialBody
 
equals(Object) - Method in record class it.unimi.di.prog2.s17.Point
Indicates whether some other object is "equal to" this one.
evenIterator(Iterator) - Static method in class it.unimi.di.prog2.e14.StringIterators
Filters even-length strings.
evenIterator(Iterator) - Static method in class it.unimi.di.prog2.s14.StringIterators
Filters even-length strings.
Examples - Section in package it.unimi.di.prog2.e17
 
Examples - Section in package it.unimi.di.prog2.s17
 

F

fat - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
fat - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts
 
fat - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
fat - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
fat(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
fill(int[], int) - Static method in class it.unimi.di.prog2.e06.ArrayUtils
 
fill(int[], int) - Static method in class it.unimi.di.prog2.s06.ArrayUtils
Fills the given array with the given value.
FilteredStringIterator - Class in it.unimi.di.prog2.h13
An iterator filtering an underlying iterator using a Predicate.
FilteredStringIterator(Iterator, Predicate) - Constructor for class it.unimi.di.prog2.h13.FilteredStringIterator
Creates a new filtered iterator.
FilteredStringIteratorClient - Class in it.unimi.di.prog2.h13
A client class for FilteredStringIterator.
FilteredStringIteratorClient() - Constructor for class it.unimi.di.prog2.h13.FilteredStringIteratorClient
.
findByDegree(List, int) - Static method in class it.unimi.di.prog2.h09.SparsePoly
Finds the index of a term of given degree in a list of terms in increasing degree order.
findByDegree(List, int) - Static method in class it.unimi.di.prog2.h10.SparsePoly
Finds the index of a term of given degree in a list of terms in increasing degree order.
findByDegree(List, int) - Static method in class it.unimi.di.prog2.h18.SparsePoly
Finds the index of a term of given degree.
firstGuests(int) - Method in class it.unimi.di.prog2.h14.member.GuestList
Returns an iterator for the first many guests.
foundPrimes - Variable in class it.unimi.di.prog2.h13.Primes
L'elenco di primi restituiti da next.
from - Variable in class it.unimi.di.prog2.s14.IntRange
The first number of the iteration.
from(int) - Method in class it.unimi.di.prog2.s14.IntRange
Sets the initial value.

G

gcd(long, long) - Method in class it.unimi.di.prog2.s12.RationalNumber
Computes the greatest common divisor of two numbers.
Gear(double) - Constructor for class it.unimi.di.prog2.h14.member.Watch.Gear
Creates a gear with the given diameter and number of teeth.
gears - Variable in class it.unimi.di.prog2.h14.member.Watch
The gears of this watch, must be non-null and not contain null.
get(String) - Method in class it.unimi.di.prog2.e12.StringToIntMap
Returns the value to which the specified key is mapped.
get(String) - Method in class it.unimi.di.prog2.s12.StringToIntMap
Returns the value to which the specified key is mapped.
getIndex(int) - Method in class it.unimi.di.prog2.h08.ListIntSet
Looks for a given element in this set.
getIndex(int) - Method in class it.unimi.di.prog2.h10.ListIntSet
Looks for a given element in this set.
getIndex(int) - Method in class it.unimi.di.prog2.h17.ListIntSet
Looks for a given element in this set.
GuestList - Class in it.unimi.di.prog2.h12
Guest list for a private party of prescribed capacity.
GuestList - Class in it.unimi.di.prog2.h14.member
Guest list for a private party of prescribed capacity.
GuestList(int) - Constructor for class it.unimi.di.prog2.h12.GuestList
Builds an empty guest list with the given maximum capacity.
GuestList(int) - Constructor for class it.unimi.di.prog2.h14.member.GuestList
Builds an empty guest list with the given maximum capacity.
GuestList(List, int) - Constructor for class it.unimi.di.prog2.h12.GuestList
Builds a guest list with the given maximum capacity, populated with an initial list of guests.
GuestList(List, int) - Constructor for class it.unimi.di.prog2.h14.member.GuestList
Builds a guest list with the given maximum capacity, populated with an initial list of guests.
GuestListClient - Class in it.unimi.di.prog2.h12
Client code for GuestList.
GuestListClient() - Constructor for class it.unimi.di.prog2.h12.GuestListClient
.
guests - Variable in class it.unimi.di.prog2.h12.GuestList
The list of guests.
guests - Variable in class it.unimi.di.prog2.h14.member.GuestList
The list of guests.
guests() - Method in class it.unimi.di.prog2.h12.GuestList
Returns the list of guests.

H

hashCode() - Method in record class it.unimi.di.prog2.h09.SparsePoly.Term
Returns a hash code value for this object.
hashCode() - Method in record class it.unimi.di.prog2.h10.SparsePoly.Term
Returns a hash code value for this object.
hashCode() - Method in class it.unimi.di.prog2.h11.DensePoly
 
hashCode() - Method in class it.unimi.di.prog2.h12.CurrencyAmount
 
hashCode() - Method in class it.unimi.di.prog2.h13.ArrayIntSet
 
hashCode() - Method in class it.unimi.di.prog2.h17.AbstractIntSet
 
hashCode() - Method in class it.unimi.di.prog2.h18.AbstractPoly
 
hashCode() - Method in record class it.unimi.di.prog2.h18.Poly.Term
Returns a hash code value for this object.
hashCode() - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
 
hashCode() - Method in class it.unimi.di.prog2.s12.RationalNumber
 
hashCode() - Method in class it.unimi.di.prog2.s12.StringToIntMap
 
hashCode() - Method in class it.unimi.di.prog2.s17.CelestialBody
 
hashCode() - Method in record class it.unimi.di.prog2.s17.Point
Returns a hash code value for this object.
hasNext() - Method in class it.unimi.di.prog2.h13.FilteredStringIterator
 
hasNext() - Method in class it.unimi.di.prog2.h13.IntGenerator
 
hasNext() - Method in class it.unimi.di.prog2.h13.Primes
 
hasNext() - Method in class it.unimi.di.prog2.h14.DecimalDigitsIG.NonZeroDigitsGeneratorIG
 
hasNext() - Method in class it.unimi.di.prog2.h14.DecimalDigitsNSG.NonZeroDigitsGeneratorNS
 
hasNext() - Method in class it.unimi.di.prog2.h14.NonZeroDigitsGenerator
 
head - Variable in class it.unimi.di.prog2.s12.BoundedIntQueue
The index in BoundedIntQueue.elements of the first queue element (or -1 if the queue is empty).

I

idx - Variable in class it.unimi.di.prog2.h13.IntGenerator
The position of the next element to return (if idx < els.length.
indexOf(int) - Method in class it.unimi.di.prog2.h08.ArrayIntSet
Looks for a given element in this set.
indexOf(int) - Method in class it.unimi.di.prog2.h10.ArrayIntSet
Looks for a given element in this set.
indexOf(int) - Method in class it.unimi.di.prog2.h13.ArrayIntSet
Looks for a given element in this set.
indexOf(int) - Method in class it.unimi.di.prog2.h17.ArrayIntSet
Looks for a given element in this set.
INITIAL_CAPACITY - Static variable in class it.unimi.di.prog2.h08.ArrayIntSet
The initial capacity of the internal array.
INITIAL_CAPACITY - Static variable in class it.unimi.di.prog2.h10.ArrayIntSet
The initial capacity of the internal array.
INITIAL_CAPACITY - Static variable in class it.unimi.di.prog2.h13.ArrayIntSet
The initial capacity of the internal array.
INITIAL_CAPACITY - Static variable in class it.unimi.di.prog2.h17.ArrayIntSet
The initial capacity of the internal array.
Input - Section in package it.unimi.di.prog2.e17
 
Input - Section in package it.unimi.di.prog2.s17
 
insert(int) - Method in class it.unimi.di.prog2.h08.ArrayIntSet
Adds the given element to this set.
insert(int) - Method in class it.unimi.di.prog2.h08.ListIntSet
Adds the given element to this set.
insert(int) - Method in class it.unimi.di.prog2.h10.ArrayIntSet
Adds the given element to this set.
insert(int) - Method in class it.unimi.di.prog2.h10.ListIntSet
Adds the given element to this set.
insert(int) - Method in class it.unimi.di.prog2.h13.ArrayIntSet
Adds the given element to this set.
insert(int) - Method in class it.unimi.di.prog2.h16.MaxIntSet
 
insert(int) - Method in class it.unimi.di.prog2.h17.AbstractIntSet
Adds the given element to this set.
insert(int) - Method in class it.unimi.di.prog2.h17.ArrayIntSet
Adds the given element to this set.
insert(int) - Method in class it.unimi.di.prog2.h17.ListIntSet
Adds the given element to this set.
insertAt(int[], int, int) - Static method in class it.unimi.di.prog2.e06.ArrayUtils
 
insertAt(int[], int, int) - Static method in class it.unimi.di.prog2.s06.ArrayUtils
Shift elements of array to the right starting at insertionPoint (inclusive) and inserts value at insertionPoint.
IntGenerator - Class in it.unimi.di.prog2.h13
Generator (in Liskov parlance) of the ints contained in a List.
IntGenerator(int[], int) - Constructor for class it.unimi.di.prog2.h13.IntGenerator
Builds an iterator (partial constructor, used just in ArrayIntSet).
IntRange - Class in it.unimi.di.prog2.s14
A mutable class representing a range of integers, with configurable initial from, to, and step values.
IntRange() - Constructor for class it.unimi.di.prog2.s14.IntRange
Constructs the range from Integer.MIN_VALUE to Integer.MAX_VALUE (exclusive) with step 1.
IntRangeClient - Class in it.unimi.di.prog2.e14
A class to test int ranges.
IntRangeClient - Class in it.unimi.di.prog2.s14
A class to test IntRanges.
IntRangeClient() - Constructor for class it.unimi.di.prog2.e14.IntRangeClient
.
IntRangeClient() - Constructor for class it.unimi.di.prog2.s14.IntRangeClient
.
IntSetClient - Class in it.unimi.di.prog2.h17
A class to test ArrayIntSet and ListIntSet.
IntSetClient() - Constructor for class it.unimi.di.prog2.h17.IntSetClient
.
invite(String) - Method in class it.unimi.di.prog2.h12.GuestList
Adds a guest to this guest list.
invite(String) - Method in class it.unimi.di.prog2.h14.member.GuestList
Adds a guest to this guest list.
isDivisibleByAFoundPrime(int) - Method in class it.unimi.di.prog2.h13.Primes
Verifica se n è divisibile per un dei primi in Primes.foundPrimes.
isEmpty() - Method in class it.unimi.di.prog2.e12.StringToIntMap
Returns if this map is empty.
isEmpty() - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
Determines whether the queue is empty, i.e., it does not contain any integer.
isEmpty() - Method in class it.unimi.di.prog2.s12.StringToIntMap
Returns if this map is empty.
isFull() - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
Determines whether the queue is full, i.e., it contains as many integers as its capacity.
isIn(int) - Method in class it.unimi.di.prog2.h08.ArrayIntSet
Tells if the given element is in this set.
isIn(int) - Method in class it.unimi.di.prog2.h08.ListIntSet
Tells if the given element is in this set.
isIn(int) - Method in class it.unimi.di.prog2.h10.ArrayIntSet
Tells if the given element is in this set.
isIn(int) - Method in class it.unimi.di.prog2.h10.ListIntSet
Tells if the given element is in this set.
isIn(int) - Method in class it.unimi.di.prog2.h13.ArrayIntSet
Tells if the given element is in this set.
isIn(int) - Method in class it.unimi.di.prog2.h17.AbstractIntSet
Tells if the given element is in this set.
isInteger() - Method in class it.unimi.di.prog2.s12.RationalNumber
Tells whether this rational number is an integer.
isPositive() - Method in class it.unimi.di.prog2.s12.RationalNumber
Tells whether this rational number is positive.
isZero() - Method in class it.unimi.di.prog2.h09.DensePoly
Checks whether this polynomial is the zero polynomial.
isZero() - Method in class it.unimi.di.prog2.h10.DensePoly
Checks whether this polynomial is the zero polynomial.
isZero() - Method in class it.unimi.di.prog2.h10.SparsePoly
Checks whether this polynomial is the zero polynomial.
isZero() - Method in class it.unimi.di.prog2.h11.DensePoly
Checks whether this polynomial is the zero polynomial.
isZero() - Method in class it.unimi.di.prog2.h18.AbstractPoly
 
isZero() - Method in interface it.unimi.di.prog2.h18.Poly
Checks whether this polynomial is the zero polynomial.
isZero() - Method in class it.unimi.di.prog2.s12.RationalNumber
Tells whether this rational number is equal to zero.
it.unimi.di.prog2.e03 - package it.unimi.di.prog2.e03
Esercizi relativi alla lezione 3, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.e05 - package it.unimi.di.prog2.e05
Esercizi relativi alla lezione 5, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.e06 - package it.unimi.di.prog2.e06
Esercizi relativi alla lezione 6, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.e12 - package it.unimi.di.prog2.e12
Esercizi relativi alla lezione 12, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.e14 - package it.unimi.di.prog2.e14
Esercizi relativi alla lezione 14, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.e17 - package it.unimi.di.prog2.e17
Esercizio relativo alla lezione 17 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h02 - package it.unimi.di.prog2.h02
Materiale relativo alla lezione 2, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h03 - package it.unimi.di.prog2.h03
Materiale relativo alla lezione 3, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h04 - package it.unimi.di.prog2.h04
Materiale relativo alla lezione 4, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h06 - package it.unimi.di.prog2.h06
Materiale relativo alla lezione 6, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h07 - package it.unimi.di.prog2.h07
Materiale relativo alla lezione 7, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h08 - package it.unimi.di.prog2.h08
Materiale relativo alla lezione 8 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h09 - package it.unimi.di.prog2.h09
Materiale relativo alla lezione 9 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h10 - package it.unimi.di.prog2.h10
Materiale relativo alla lezione 10 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h11 - package it.unimi.di.prog2.h11
Materiale relativo alla lezione 11 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h11.builder - package it.unimi.di.prog2.h11.builder
 
it.unimi.di.prog2.h12 - package it.unimi.di.prog2.h12
Materiale relativo alla lezione 12 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h13 - package it.unimi.di.prog2.h13
Materiale relativo alla lezione 13 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h14 - package it.unimi.di.prog2.h14
Materiale relativo alla lezione 14 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h14.member - package it.unimi.di.prog2.h14.member
 
it.unimi.di.prog2.h16 - package it.unimi.di.prog2.h16
Materiale relativo alla lezione 16 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h17 - package it.unimi.di.prog2.h17
Materiale relativo alla lezione 17 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h18 - package it.unimi.di.prog2.h18
Materiale relativo alla lezione 18 per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.h24 - package it.unimi.di.prog2.h24
 
it.unimi.di.prog2.s03 - package it.unimi.di.prog2.s03
Soluzioni relative agli esercizi della lezione 3, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.s05 - package it.unimi.di.prog2.s05
Soluzioni relative agli esercizi della lezione 5, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.s06 - package it.unimi.di.prog2.s06
Soluzioni relative agli esercizi della lezione 6, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.s12 - package it.unimi.di.prog2.s12
Soluzioni relative agli esercizi della lezione 12, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.s14 - package it.unimi.di.prog2.s14
Soluzioni relative agli esercizi della lezione 14, per maggiori dettagli si veda il diario del corso.
it.unimi.di.prog2.s17 - package it.unimi.di.prog2.s17
Soluzione relativa all'esercizio della lezione 17 per maggiori dettagli si veda il diario del corso.
iterator() - Method in class it.unimi.di.prog2.h13.ArrayIntSet
 
iterator() - Method in class it.unimi.di.prog2.h14.member.Book
 
iterator() - Method in class it.unimi.di.prog2.h14.member.GuestList
 
iterator() - Method in class it.unimi.di.prog2.h14.member.Watch
 
iterator() - Method in class it.unimi.di.prog2.h14.StringFormatter
Returns an iterator over the non-null strings in this formatter.
iterator() - Method in class it.unimi.di.prog2.h17.ArrayIntSet
 
iterator() - Method in class it.unimi.di.prog2.h17.ListIntSet
 
iterator() - Method in class it.unimi.di.prog2.h18.DensePoly
 
iterator() - Method in class it.unimi.di.prog2.h18.SparsePoly
 
iterator() - Method in class it.unimi.di.prog2.s14.IntRange
Returns an iterator for this range.

K

keys - Variable in class it.unimi.di.prog2.s12.StringToIntMap
A list containing the keys.

L

ListIntSet - Class in it.unimi.di.prog2.h08
ListIntSets are mutable, unbounded sets of integers.
ListIntSet - Class in it.unimi.di.prog2.h10
ListIntSets are mutable, unbounded sets of integers.
ListIntSet - Class in it.unimi.di.prog2.h17
ListIntSets are mutable, unbounded sets of integers.
ListIntSet() - Constructor for class it.unimi.di.prog2.h08.ListIntSet
Initializes this set to be empty.
ListIntSet() - Constructor for class it.unimi.di.prog2.h10.ListIntSet
Initializes this set to be empty.
ListIntSet() - Constructor for class it.unimi.di.prog2.h17.ListIntSet
Initializes this set to be empty.
ListIntSetClient - Class in it.unimi.di.prog2.h08
A class to test some methods of ListIntSet.
ListIntSetClient - Class in it.unimi.di.prog2.h10
A class to test some methods of ListIntSet.
ListIntSetClient() - Constructor for class it.unimi.di.prog2.h08.ListIntSetClient
.
ListIntSetClient() - Constructor for class it.unimi.di.prog2.h10.ListIntSetClient
.
ListUtils - Class in it.unimi.di.prog2.h06
Classe di utilità per le liste.
ListUtils() - Constructor for class it.unimi.di.prog2.h06.ListUtils
Costruttore privato che impedisce l'istanziazione.
ListUtilsClient - Class in it.unimi.di.prog2.h06
Classe client per ListUtils.
ListUtilsClient() - Constructor for class it.unimi.di.prog2.h06.ListUtilsClient
.

M

main(String[]) - Static method in class it.unimi.di.prog2.h02.SalveMondo
Il metodo principale.
main(String[]) - Static method in class it.unimi.di.prog2.h03.SommaArray
Legge dal flusso in ingresso al più 10 interi e ne emette la somma nel flusso d'uscita.
main(String[]) - Static method in class it.unimi.di.prog2.h03.SommaCentesimi
Legge dal flusso di ingresso un elenco di importi in euro e centesimi (uno per riga, con la parte decimale separata dalla parte intera da un punto) e ne emette nel flusso d'uscita la somma.
main(String[]) - Static method in class it.unimi.di.prog2.h03.UguaglianzaFrazioni
Riceve come parametri sulla linea di comando quattro interi corrispondenti rispettivamente a numeratore e denominatore di due frazioni ed emette nel flusso d'uscita "uguali" se le frazioni sono uguali, oppure "diverse".
main(String[]) - Static method in class it.unimi.di.prog2.h04.BandieraList
Legge una sequenza di parole dal flusso standard di ingresso e le stampa in bandiera destra.
main(String[]) - Static method in class it.unimi.di.prog2.h04.BandieraVector
Legge una sequenza di parole dal flusso standard di ingresso e le stampa in bandiera destra.
main(String[]) - Static method in class it.unimi.di.prog2.h04.SommaList
Legge dal flusso in ingresso al più 10 interi e ne emette la somma nel flusso d'uscita.
main(String[]) - Static method in class it.unimi.di.prog2.h04.SommaListBoxing
Legge dal flusso in ingresso al più 10 interi e ne emette la somma nel flusso d'uscita.
main(String[]) - Static method in class it.unimi.di.prog2.h06.ListUtilsClient
Legge dal flusso di ingresso una lista di stringhe in ordine lessicografico e stampa l'indice della stringa passata come argomento sulla linea di comando, oppure -1 se tale stringa non compare nella lista.
main(String[]) - Static method in class it.unimi.di.prog2.h08.ArrayIntSetClient
Tests some methods of ListIntSet.
main(String[]) - Static method in class it.unimi.di.prog2.h08.ListIntSetClient
Tests some methods of ListIntSet.
main(String[]) - Static method in class it.unimi.di.prog2.h09.DensePolyClient
Tests some methods of DensePoly.
main(String[]) - Static method in class it.unimi.di.prog2.h09.SparsePolyClient
Tests some methods of SparsePoly.
main(String[]) - Static method in class it.unimi.di.prog2.h10.ArrayIntSetClient
Tests some methods of ListIntSet.
main(String[]) - Static method in class it.unimi.di.prog2.h10.DensePolyClient
Tests some methods of DensePoly.
main(String[]) - Static method in class it.unimi.di.prog2.h10.ListIntSetClient
Tests some methods of ListIntSet.
main(String[]) - Static method in class it.unimi.di.prog2.h10.SparsePolyClient
Tests some methods of SparsePoly.
main(String[]) - Static method in class it.unimi.di.prog2.h11.builder.UseNutritionFacts
 
main(String[]) - Static method in class it.unimi.di.prog2.h11.DensePolyClient
Tests some methods of DensePoly.
main(String[]) - Static method in class it.unimi.di.prog2.h12.CurrencyAmountClient
Main method for testing.
main(String[]) - Static method in class it.unimi.di.prog2.h12.GuestListClient
Main method.
main(String[]) - Static method in class it.unimi.di.prog2.h13.ArrayIntSetClient
Legge una sequenza di interi dal flusso di ingresso ed emette la loro somma nel flusso d'uscita.
main(String[]) - Static method in class it.unimi.di.prog2.h13.FilteredStringIteratorClient
Reads strings from standard input and emits in the standard output those ending with a given suffix.
main(String[]) - Static method in class it.unimi.di.prog2.h14.member.BookClient
The main method.
main(String[]) - Static method in class it.unimi.di.prog2.h14.member.WatchClient
The main method.
main(String[]) - Static method in class it.unimi.di.prog2.h16.MaxIntSetClient
Reads a series of instructions and prints the resulting set from their execution.
main(String[]) - Static method in class it.unimi.di.prog2.h17.IntSetClient
Tests some methods of ArrayIntSet and ListIntSet.
main(String[]) - Static method in class it.unimi.di.prog2.h18.PolyClient
A simple client for Polys.
main(String[]) - Static method in class it.unimi.di.prog2.h24.Anagrams
Reads a list of words from standard input and prints all anagrams of size at least 2.
main(String[]) - Static method in class it.unimi.di.prog2.s03.SommaCentesimi
Legge dal flusso di ingresso un elenco di importi in euro e centesimi (uno per riga, con la parte decimale separata dalla parte intera da un punto) e ne emette nel flusso d'uscita la somma.
main(String[]) - Static method in class it.unimi.di.prog2.s03.UguaglianzaFrazioni
Riceve come parametri sulla linea di comando quattro interi corrispondenti rispettivamente a numeratore e denominatore di due frazioni ed emette nel flusso d'uscita "uguali" se le frazioni sono uguali, oppure "diverse".
main(String[]) - Static method in class it.unimi.di.prog2.s05.ArrayUtilsClient
Reads 10 integers in increasing order from the standard input and prints the index of the integer passed as argument on the command line if found.
main(String[]) - Static method in class it.unimi.di.prog2.s05.MathFunctionsClient
Reads a sequence of floating-point numbers from standard input, computes their square root (when possible), and prints true or false depending on whether the result is correct within 10^-3 or not.
main(String[]) - Static method in class it.unimi.di.prog2.s06.ArrayUtilsClient
Receives a size as command line argument, then initializes an array of that size filled with Integer.MAX_VALUE.
main(String[]) - Static method in class it.unimi.di.prog2.s06.MathFunctionsClient
Reads a sequence of floating-point numbers from standard input, computes their square root (when possible), and prints true or false depending on whether the result is correct within 10^-3 or not.
main(String[]) - Static method in class it.unimi.di.prog2.s12.BoundedIntQueueClient
Tests some methods of BoundedIntQueue.
main(String[]) - Static method in class it.unimi.di.prog2.s12.RationalNumberClient
Tests some methods of RationalNumber.
main(String[]) - Static method in class it.unimi.di.prog2.s12.StringToIntMapClient
A simple client to test the StringToIntMap class.
main(String[]) - Static method in class it.unimi.di.prog2.s14.IntRangeClient
A method to test the IntRange class.
main(String[]) - Static method in class it.unimi.di.prog2.s14.StringIteratorsClient
Prints the uppercase version of the lines of even length in the standard input.
main(String[]) - Static method in class it.unimi.di.prog2.s17.AstronomicalSystemClient
Simulates an astronomical system.
MathFunctions - Class in it.unimi.di.prog2.e05
Utility class for computing mathematical functions.
MathFunctions - Class in it.unimi.di.prog2.e06
Utility class for computing mathematical functions.
MathFunctions - Class in it.unimi.di.prog2.h07
Utility class for computing mathematical functions.
MathFunctions - Class in it.unimi.di.prog2.s05
Utility class for computing mathematical functions.
MathFunctions - Class in it.unimi.di.prog2.s06
Utility class for computing mathematical functions.
MathFunctions() - Constructor for class it.unimi.di.prog2.e05.MathFunctions
.
MathFunctions() - Constructor for class it.unimi.di.prog2.e06.MathFunctions
.
MathFunctions() - Constructor for class it.unimi.di.prog2.h07.MathFunctions
.
MathFunctions() - Constructor for class it.unimi.di.prog2.s05.MathFunctions
.
MathFunctions() - Constructor for class it.unimi.di.prog2.s06.MathFunctions
.
MathFunctionsClient - Class in it.unimi.di.prog2.e05
Client for the MathFunctions class.
MathFunctionsClient - Class in it.unimi.di.prog2.e06
Client for the MathFunctions class.
MathFunctionsClient - Class in it.unimi.di.prog2.s05
Client for the MathFunctions class.
MathFunctionsClient - Class in it.unimi.di.prog2.s06
Client for the MathFunctions class.
MathFunctionsClient() - Constructor for class it.unimi.di.prog2.e05.MathFunctionsClient
.
MathFunctionsClient() - Constructor for class it.unimi.di.prog2.e06.MathFunctionsClient
.
MathFunctionsClient() - Constructor for class it.unimi.di.prog2.s05.MathFunctionsClient
.
MathFunctionsClient() - Constructor for class it.unimi.di.prog2.s06.MathFunctionsClient
.
max() - Method in class it.unimi.di.prog2.h16.MaxIntSet
Returns the maximum value in the set, or raises IllegalStateException otherwise.
MaxIntSet - Class in it.unimi.di.prog2.h16
Example of MaxIntSet taken from section 7.4 of the textbook by Liskov et al..
MaxIntSet() - Constructor for class it.unimi.di.prog2.h16.MaxIntSet
Construct an empty MaxIntSet.
MaxIntSetClient - Class in it.unimi.di.prog2.h16
Test class for MaxIntSet.
MaxIntSetClient() - Constructor for class it.unimi.di.prog2.h16.MaxIntSetClient
.
maxLength(List) - Static method in class it.unimi.di.prog2.h04.BandieraList
Calcola la lunghezza massima delle parole in una lista.
maxLength(Vector) - Static method in class it.unimi.di.prog2.h04.BandieraVector
Calcola la lunghezza massima delle parole in una lista.
minus() - Method in class it.unimi.di.prog2.h09.DensePoly
Returns the negate polynomial.
minus() - Method in class it.unimi.di.prog2.h09.Poly
Returns the negate polynomial.
minus() - Method in class it.unimi.di.prog2.h09.SparsePoly
Returns the negate polynomial.
minus() - Method in class it.unimi.di.prog2.h10.DensePoly
Returns the negate polynomial.
minus() - Method in class it.unimi.di.prog2.h10.SparsePoly
Returns the negate polynomial.
minus() - Method in class it.unimi.di.prog2.h11.DensePoly
Returns the negate polynomial.
minus() - Method in class it.unimi.di.prog2.h18.DensePoly
Returns the negate polynomial.
minus() - Method in interface it.unimi.di.prog2.h18.Poly
Returns the negated polynomial.
minus() - Method in class it.unimi.di.prog2.h18.SparsePoly
 
model - Variable in class it.unimi.di.prog2.h14.member.Watch
The model of this watch, must be non-empty (and not null).
mul(RationalNumber) - Method in class it.unimi.di.prog2.e12.RationalNumber
Returns the product of this rational number and another one.
mul(DensePoly) - Method in class it.unimi.di.prog2.h09.DensePoly
Performs polynomial multiplication.
mul(Poly) - Method in class it.unimi.di.prog2.h09.Poly
Performs polynomial multiplication.
mul(SparsePoly) - Method in class it.unimi.di.prog2.h09.SparsePoly
Performs polynomial multiplication.
mul(DensePoly) - Method in class it.unimi.di.prog2.h10.DensePoly
Performs polynomial multiplication.
mul(SparsePoly) - Method in class it.unimi.di.prog2.h10.SparsePoly
Performs polynomial multiplication.
mul(DensePoly) - Method in class it.unimi.di.prog2.h11.DensePoly
Performs polynomial multiplication.
mul(Poly) - Method in class it.unimi.di.prog2.h18.DensePoly
Performs polynomial multiplication.
mul(Poly) - Method in interface it.unimi.di.prog2.h18.Poly
Performs polynomial multiplication.
mul(Poly) - Method in class it.unimi.di.prog2.h18.SparsePoly
 
mul(RationalNumber) - Method in class it.unimi.di.prog2.s12.RationalNumber
Returns the product of this rational number and another one.

N

name - Variable in class it.unimi.di.prog2.s17.CelestialBody
The name of the celestial body.
name() - Method in class it.unimi.di.prog2.s17.CelestialBody
Returns the name of this celestial body.
negative(int, int) - Static method in class it.unimi.di.prog2.h12.CurrencyAmount
Produce a negative amount.
next - Variable in class it.unimi.di.prog2.h13.FilteredStringIterator
The next element to be returned, or null if not yet computed.
next() - Method in class it.unimi.di.prog2.h13.FilteredStringIterator
 
next() - Method in class it.unimi.di.prog2.h13.IntGenerator
 
next() - Method in class it.unimi.di.prog2.h13.Primes
 
next() - Method in class it.unimi.di.prog2.h14.DecimalDigitsIG.NonZeroDigitsGeneratorIG
 
next() - Method in class it.unimi.di.prog2.h14.DecimalDigitsNSG.NonZeroDigitsGeneratorNS
 
next() - Method in class it.unimi.di.prog2.h14.NonZeroDigitsGenerator
 
nonZeroDigits() - Method in class it.unimi.di.prog2.h14.DecimalDigitsAG
Returns a generator on from the least significant to the most significant non zero digits.
nonZeroDigits() - Method in class it.unimi.di.prog2.h14.DecimalDigitsEG
Returns a generator on from the least significant to the most significant non zero digits.
nonZeroDigits() - Method in class it.unimi.di.prog2.h14.DecimalDigitsIG
Returns a generator on from the least significant to the most significant non zero digits.
nonZeroDigits() - Method in class it.unimi.di.prog2.h14.DecimalDigitsNSG
Returns a generator on from the least significant to the most significant non zero digits.
NonZeroDigitsGenerator - Class in it.unimi.di.prog2.h14
A generator returning the non zero digits of a long from the least to the most significant one.
NonZeroDigitsGenerator(long) - Constructor for class it.unimi.di.prog2.h14.NonZeroDigitsGenerator
Creates a new generator for the given number.
NonZeroDigitsGeneratorIG() - Constructor for class it.unimi.di.prog2.h14.DecimalDigitsIG.NonZeroDigitsGeneratorIG
.
NonZeroDigitsGeneratorNS(long) - Constructor for class it.unimi.di.prog2.h14.DecimalDigitsNSG.NonZeroDigitsGeneratorNS
Creates a new generator for the given number.
norm() - Method in record class it.unimi.di.prog2.s17.Point
Returns the l1 norm of this point.
number - Variable in class it.unimi.di.prog2.h14.DecimalDigits
The number whose digits are represented by this class.
number - Variable in class it.unimi.di.prog2.h14.DecimalDigitsAG
The number whose digits are represented by this class.
number - Variable in class it.unimi.di.prog2.h14.DecimalDigitsEG
The number whose digits are represented by this class.
number - Variable in class it.unimi.di.prog2.h14.DecimalDigitsIG
The number whose digits are represented by this class.
number - Variable in class it.unimi.di.prog2.h14.DecimalDigitsNSG
The number whose digits are represented by this class.
numerator - Variable in class it.unimi.di.prog2.s12.RationalNumber
The numerator.
NutritionFacts - Class in it.unimi.di.prog2.h11.builder
See EJ 2.2 for a discussion of this class.
NutritionFacts(NutritionFacts.Builder) - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFacts
 
NutritionFacts.Builder - Class in it.unimi.di.prog2.h11.builder
 
NutritionFactsImmutable - Class in it.unimi.di.prog2.h11.builder
See EJ 2.1 for a discussion of this class.
NutritionFactsImmutable(int, int) - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
NutritionFactsImmutable(int, int, int) - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
NutritionFactsImmutable(int, int, int, int) - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
NutritionFactsImmutable(int, int, int, int, int) - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
NutritionFactsImmutable(int, int, int, int, int, int) - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
NutritionFactsMutable - Class in it.unimi.di.prog2.h11.builder
See EJ 2.1 for a discussion of this class.
NutritionFactsMutable() - Constructor for class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 

O

ofCoefficientDegree(int, int) - Static method in class it.unimi.di.prog2.h11.DensePoly
Initializes this to be the polynomial \(p = cx^n\).
ofCoefficientDegree(int, int) - Static method in class it.unimi.di.prog2.h18.DensePoly
Creates the polynomial \(p = cx^n\).
ofCoefficientDegree(int, int) - Static method in class it.unimi.di.prog2.h18.SparsePoly
Creates the polynomial \(p = cx^n\).
ofCoefficients(int[]) - Static method in class it.unimi.di.prog2.h11.DensePoly
Initializes a polynomial given an array of coefficients.
ofCoefficients(int[]) - Static method in class it.unimi.di.prog2.h18.DensePoly
Creates a polynomial given an array of coefficients.
ofTerms(Poly.Term...) - Static method in class it.unimi.di.prog2.h18.SparsePoly
Creates a polynomial given its terms.
ofTerms(List) - Static method in class it.unimi.di.prog2.h18.SparsePoly
Creates a polynomial given a list of terms.
original - Variable in class it.unimi.di.prog2.h13.FilteredStringIterator
The original iterator.

P

parseCurrencyAmount(String) - Static method in class it.unimi.di.prog2.h12.CurrencyAmount
Parses an amount from a string.
Planet - Class in it.unimi.di.prog2.s17
A planet.
Planet(String, int, int, int) - Constructor for class it.unimi.di.prog2.s17.Planet
Constructs a planet.
Point - Record Class in it.unimi.di.prog2.s17
Immutable three-dimensional point with integer coordinates.
Point(int, int, int) - Constructor for record class it.unimi.di.prog2.s17.Point
Creates an instance of a Point record class.
Poly - Class in it.unimi.di.prog2.h09
Polys are immutable polynomials with integer coefficients.
Poly - Interface in it.unimi.di.prog2.h18
Polys are immutable polynomials with integer coefficients.
Poly() - Constructor for class it.unimi.di.prog2.h09.Poly
.
Poly.Term - Record Class in it.unimi.di.prog2.h18
A non-zero term of a polynomial.
PolyClient - Class in it.unimi.di.prog2.h18
A simple client for Polys.
PolyClient() - Constructor for class it.unimi.di.prog2.h18.PolyClient
.
position - Variable in class it.unimi.di.prog2.s17.CelestialBody
The position of the celestial body.
position() - Method in class it.unimi.di.prog2.s17.CelestialBody
Returns the position of this celestial body.
position(Point) - Method in class it.unimi.di.prog2.s17.CelestialBody
Sets the position of this celestial body.
positive(int, int) - Static method in class it.unimi.di.prog2.h12.CurrencyAmount
Produce a positive amount.
predicate - Variable in class it.unimi.di.prog2.h13.FilteredStringIterator
The predicate used for filtering.
Primes - Class in it.unimi.di.prog2.h13
Iteratore che genera i numeri primi.
Primes() - Constructor for class it.unimi.di.prog2.h13.Primes
Crea un generatore di numeri primi.
print(int[]) - Static method in class it.unimi.di.prog2.e06.ArrayUtils
 
print(int[]) - Static method in class it.unimi.di.prog2.s06.ArrayUtils
Prints the content of the given array, one element per line.
printIterationsFirstLast(Iterator) - Static method in class it.unimi.di.prog2.e14.IntRangeClient
Prints a description of an iterator on integers.
printIterationsFirstLast(Iterator) - Static method in class it.unimi.di.prog2.s14.IntRangeClient
Prints a description of an iterator on integers.
put(String, int) - Method in class it.unimi.di.prog2.e12.StringToIntMap
Associates in this map the new key with the specified value.
put(String, int) - Method in class it.unimi.di.prog2.s12.StringToIntMap
Associates in this map the new key with the specified value.

R

RationalNumber - Class in it.unimi.di.prog2.e12
A rational number is an immutable number that can be expressed as the quotient or fraction \( p/q \) of two ints, a numerator \( p \) and a non-zero denominator \( q \).
RationalNumber - Class in it.unimi.di.prog2.s12
A rational number is an immutable number that can be expressed as the quotient or fraction \( p/q \) of two ints, a numerator \( p \) and a non-zero denominator \( q \).
RationalNumber(int) - Constructor for class it.unimi.di.prog2.s12.RationalNumber
Creates a new integer number.
RationalNumber(int, int) - Constructor for class it.unimi.di.prog2.e12.RationalNumber
Creates a new rational number.
RationalNumber(long, long) - Constructor for class it.unimi.di.prog2.s12.RationalNumber
Creates a new rational number.
RationalNumberClient - Class in it.unimi.di.prog2.e12
A class to exercise a RationalNumber.
RationalNumberClient - Class in it.unimi.di.prog2.s12
A class to exercise a RationalNumber.
RationalNumberClient() - Constructor for class it.unimi.di.prog2.e12.RationalNumberClient
.
RationalNumberClient() - Constructor for class it.unimi.di.prog2.s12.RationalNumberClient
.
read() - Static method in class it.unimi.di.prog2.h04.BandieraList
Legge una sequenza di parole dal flusso standard di ingresso.
read() - Static method in class it.unimi.di.prog2.h04.BandieraVector
Legge una sequenza di parole dal flusso standard di ingresso.
remaining - Variable in class it.unimi.di.prog2.h14.DecimalDigitsIG.NonZeroDigitsGeneratorIG
The remaining digits to return (except possibly for the trailing zeroes).
remaining - Variable in class it.unimi.di.prog2.h14.DecimalDigitsNSG.NonZeroDigitsGeneratorNS
The remaining digits to return (except possibly for the trailing zeroes).
remaining - Variable in class it.unimi.di.prog2.h14.NonZeroDigitsGenerator
The remaining digits to return (except possibly for the trailing zeroes).
remove(int) - Method in class it.unimi.di.prog2.h08.ArrayIntSet
Removes the given element from this set.
remove(int) - Method in class it.unimi.di.prog2.h08.ListIntSet
Removes the given element from this set.
remove(int) - Method in class it.unimi.di.prog2.h10.ArrayIntSet
Removes the given element from this set.
remove(int) - Method in class it.unimi.di.prog2.h10.ListIntSet
Removes the given element from this set.
remove(int) - Method in class it.unimi.di.prog2.h13.ArrayIntSet
Removes the given element from this set.
remove(int) - Method in class it.unimi.di.prog2.h16.MaxIntSet
 
remove(int) - Method in class it.unimi.di.prog2.h17.AbstractIntSet
Removes the given element from this set.
remove(int) - Method in class it.unimi.di.prog2.h17.ArrayIntSet
Removes the given element from this set.
remove(int) - Method in class it.unimi.di.prog2.h17.ListIntSet
Removes the given element from this set.
remove(String) - Method in class it.unimi.di.prog2.e12.StringToIntMap
Removes the mapping for a key from this map if it is present.
remove(String) - Method in class it.unimi.di.prog2.s12.StringToIntMap
Removes the mapping for a key from this map if it is present.
rotations - Variable in class it.unimi.di.prog2.h14.member.Watch.Gear
The number of rotations this gear has done., must be non-negative.
rotations() - Method in class it.unimi.di.prog2.h14.member.Watch.Gear
Returns the number of rotations this gear has done.

S

SalveMondo - Class in it.unimi.di.prog2.h02
La prima classe Java.
SalveMondo() - Constructor for class it.unimi.di.prog2.h02.SalveMondo
.
servings - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
servings - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts
 
servings - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
servings - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
servingSize - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
servingSize - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts
 
servingSize - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
servingSize - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
setCalories(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
setCarbohydrate(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
setFat(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
setServings(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
setServingSize(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
setSodium(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
sign() - Method in class it.unimi.di.prog2.h12.CurrencyAmount
Returns the sign of the amount.
signature(String) - Static method in class it.unimi.di.prog2.h24.Anagrams
Returns the signature of a word, that is, the word obtained by sorting its letters.
signum() - Method in record class it.unimi.di.prog2.s17.Point
Returns a point with coordinates -1, 0, or 1 depending on the sign of the coordinates of this point.
simulateSteps(int) - Method in class it.unimi.di.prog2.s17.AstronomicalSystem
Simulates the evolution of the system for a given number of steps.
size - Variable in class it.unimi.di.prog2.h08.ArrayIntSet
The number of elements in this set.
size - Variable in class it.unimi.di.prog2.h10.ArrayIntSet
The number of elements in this set.
size - Variable in class it.unimi.di.prog2.h13.ArrayIntSet
The number of elements in this set.
size - Variable in class it.unimi.di.prog2.h13.IntGenerator
The number of elements in the set.
size - Variable in class it.unimi.di.prog2.h17.AbstractIntSet
The elements of the set.
size() - Method in class it.unimi.di.prog2.e12.StringToIntMap
Returns the size of this map.
size() - Method in class it.unimi.di.prog2.h08.ArrayIntSet
Returns the cardinality of this set.
size() - Method in class it.unimi.di.prog2.h08.ListIntSet
Returns the cardinality of this set.
size() - Method in class it.unimi.di.prog2.h10.ArrayIntSet
Returns the cardinality of this set.
size() - Method in class it.unimi.di.prog2.h10.ListIntSet
Returns the cardinality of this set.
size() - Method in class it.unimi.di.prog2.h13.ArrayIntSet
Returns the cardinality of this set.
size() - Method in class it.unimi.di.prog2.h17.AbstractIntSet
Returns the cardinality of this set.
size() - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
Returns the number of elements in the queue.
size() - Method in class it.unimi.di.prog2.s12.StringToIntMap
Returns the size of this map.
SIZE - Static variable in class it.unimi.di.prog2.s05.ArrayUtilsClient
The fixed size of the input and array.
sodium - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
sodium - Variable in class it.unimi.di.prog2.h11.builder.NutritionFacts
 
sodium - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsImmutable
 
sodium - Variable in class it.unimi.di.prog2.h11.builder.NutritionFactsMutable
 
sodium(int) - Method in class it.unimi.di.prog2.h11.builder.NutritionFacts.Builder
 
somma(int[]) - Static method in class it.unimi.di.prog2.h03.SommaArray
Calcola la somma degli elementi di un array di interi.
somma(CurrencyAmount) - Method in class it.unimi.di.prog2.h12.CurrencyAmount
Returns a new amount representing the sum of this amount and another.
somma(List) - Static method in class it.unimi.di.prog2.h04.SommaList
Calcola la somma degli elementi di un array di interi.
somma(List) - Static method in class it.unimi.di.prog2.h04.SommaListBoxing
Calcola la somma degli elementi di un array di interi.
SommaArray - Class in it.unimi.di.prog2.h03
Classe per calcolare la somma degli elementi di un array.
SommaArray() - Constructor for class it.unimi.di.prog2.h03.SommaArray
Costruttore privato per impedire l'istanziazione della classe.
SommaCentesimi - Class in it.unimi.di.prog2.e03
Classe per la somma di importi in centesimi.
SommaCentesimi - Class in it.unimi.di.prog2.h03
Classe per la somma di importi in centesimi.
SommaCentesimi - Class in it.unimi.di.prog2.s03
Classe per la somma di importi in centesimi.
SommaCentesimi() - Constructor for class it.unimi.di.prog2.e03.SommaCentesimi
Costruttore privato per impedire l'istanziazione.
SommaCentesimi() - Constructor for class it.unimi.di.prog2.h03.SommaCentesimi
.
SommaCentesimi() - Constructor for class it.unimi.di.prog2.s03.SommaCentesimi
.
SommaList - Class in it.unimi.di.prog2.h04
Classe per calcolare la somma degli elementi di una lista.
SommaList() - Constructor for class it.unimi.di.prog2.h04.SommaList
Costruttore privato per impedire l'istanziazione della classe.
SommaListBoxing - Class in it.unimi.di.prog2.h04
Classe per calcolare la somma degli elementi di una lista.
SommaListBoxing() - Constructor for class it.unimi.di.prog2.h04.SommaListBoxing
Costruttore privato per impedire l'istanziazione della classe.
sottrai(CurrencyAmount) - Method in class it.unimi.di.prog2.h12.CurrencyAmount
Returns a new amount representing the difference between this amount and another.
SparsePoly - Class in it.unimi.di.prog2.h09
SparsePolys are immutable polynomials with integer coefficients such that the number of nonzero coefficient is small with respect to the degree.
SparsePoly - Class in it.unimi.di.prog2.h10
SparsePolys are immutable polynomials with integer coefficients such that the number of nonzero coefficient is small with respect to the degree.
SparsePoly - Class in it.unimi.di.prog2.h18
A sparse implementation of non-zero Polys.
SparsePoly() - Constructor for class it.unimi.di.prog2.h09.SparsePoly
Initializes this to be the zero polynomial, that is \( p = 0 \).
SparsePoly() - Constructor for class it.unimi.di.prog2.h10.SparsePoly
Initializes this to be the zero polynomial, that is \( p = 0 \).
SparsePoly(int, int) - Constructor for class it.unimi.di.prog2.h09.SparsePoly
Initializes this to be the polynomial \(p = cx^n\).
SparsePoly(int, int) - Constructor for class it.unimi.di.prog2.h10.SparsePoly
Initializes this to be the polynomial \(p = cx^n\).
SparsePoly(List) - Constructor for class it.unimi.di.prog2.h09.SparsePoly
Initializes this to be the polynomial from a list of terms in increasing degree order.
SparsePoly(List) - Constructor for class it.unimi.di.prog2.h10.SparsePoly
Initializes this to be the polynomial from a list of terms in increasing degree order.
SparsePoly(List) - Constructor for class it.unimi.di.prog2.h18.SparsePoly
Initializes this to be the polynomial with given terms and degree.
SparsePoly.Term - Record Class in it.unimi.di.prog2.h09
A record holding a non-zero term of the polynomial.
SparsePoly.Term - Record Class in it.unimi.di.prog2.h10
A record holding a non-zero term of the polynomial.
SparsePolyClient - Class in it.unimi.di.prog2.h09
A class to test some methods of SparsePoly.
SparsePolyClient - Class in it.unimi.di.prog2.h10
A class to test some methods of SparsePoly.
SparsePolyClient() - Constructor for class it.unimi.di.prog2.h09.SparsePolyClient
.
SparsePolyClient() - Constructor for class it.unimi.di.prog2.h10.SparsePolyClient
.
sqrt(double) - Static method in class it.unimi.di.prog2.e06.MathFunctions
Extracts (if possible) the square root of the given number.
sqrt(double) - Static method in class it.unimi.di.prog2.h07.MathFunctions
Extracts (if possible) the square root of the given number.
sqrt(double) - Static method in class it.unimi.di.prog2.s05.MathFunctions
Extracts (if possible) the square root of the given number.
sqrt(double) - Static method in class it.unimi.di.prog2.s06.MathFunctions
Extracts (if possible) the square root of the given number.
Star - Class in it.unimi.di.prog2.s17
A fixed star.
Star(String, int, int, int) - Constructor for class it.unimi.di.prog2.s17.Star
Constructs a fixed star.
step - Variable in class it.unimi.di.prog2.s14.IntRange
The iteration step.
step() - Method in class it.unimi.di.prog2.s17.AstronomicalSystem
Performs a simulation step.
step(int) - Method in class it.unimi.di.prog2.s14.IntRange
Sets the step.
string - Variable in class it.unimi.di.prog2.h14.StringFormatter
The list of added strings.
StringEndsWith - Class in it.unimi.di.prog2.h13
A predicate checking whether strings end with a given suffix.
StringEndsWith(String) - Constructor for class it.unimi.di.prog2.h13.StringEndsWith
Creates a new predicate checking for the given suffix.
StringFormatter - Class in it.unimi.di.prog2.h14
A class to collect a sequence of strings and format them.
StringFormatter() - Constructor for class it.unimi.di.prog2.h14.StringFormatter
Creates an empty formatter.
StringIterators - Class in it.unimi.di.prog2.e14
Utility class with some string iterators.
StringIterators - Class in it.unimi.di.prog2.s14
Utility class with some string iterators.
StringIterators() - Constructor for class it.unimi.di.prog2.e14.StringIterators
.
StringIterators() - Constructor for class it.unimi.di.prog2.s14.StringIterators
.
StringIteratorsClient - Class in it.unimi.di.prog2.e14
A class to test StringIterators.
StringIteratorsClient - Class in it.unimi.di.prog2.s14
A class to test StringIterators.
StringIteratorsClient() - Constructor for class it.unimi.di.prog2.e14.StringIteratorsClient
.
StringIteratorsClient() - Constructor for class it.unimi.di.prog2.s14.StringIteratorsClient
.
StringToIntMap - Class in it.unimi.di.prog2.e12
A map from String to Integer.
StringToIntMap - Class in it.unimi.di.prog2.s12
A map from String to Integer.
StringToIntMap() - Constructor for class it.unimi.di.prog2.e12.StringToIntMap
Creates a new empty map.
StringToIntMap() - Constructor for class it.unimi.di.prog2.s12.StringToIntMap
Creates a new empty map.
StringToIntMapClient - Class in it.unimi.di.prog2.e12
A class to exercise some methods of StringToIntMap.
StringToIntMapClient - Class in it.unimi.di.prog2.s12
A class to exercise some methods of StringToIntMap.
StringToIntMapClient() - Constructor for class it.unimi.di.prog2.e12.StringToIntMapClient
.
StringToIntMapClient() - Constructor for class it.unimi.di.prog2.s12.StringToIntMapClient
.
sub(DensePoly) - Method in class it.unimi.di.prog2.h09.DensePoly
Performs polynomial subtraction.
sub(Poly) - Method in class it.unimi.di.prog2.h09.Poly
Performs polynomial subtraction.
sub(SparsePoly) - Method in class it.unimi.di.prog2.h09.SparsePoly
Performs polynomial subtraction.
sub(DensePoly) - Method in class it.unimi.di.prog2.h10.DensePoly
Performs polynomial subtraction.
sub(SparsePoly) - Method in class it.unimi.di.prog2.h10.SparsePoly
Performs polynomial subtraction.
sub(DensePoly) - Method in class it.unimi.di.prog2.h11.DensePoly
Performs polynomial subtraction.
sub(Poly) - Method in interface it.unimi.di.prog2.h18.Poly
Performs polynomial subtraction.
subtract(Point) - Method in record class it.unimi.di.prog2.s17.Point
Returns the difference between this point and the given point.
suffix - Variable in class it.unimi.di.prog2.h13.StringEndsWith
The suffix to check for.
sum(Point) - Method in record class it.unimi.di.prog2.s17.Point
Returns the sum of this point and the given point.

T

tail - Variable in class it.unimi.di.prog2.s12.BoundedIntQueue
The index of the first free position in BoundedIntQueue.elements (if the queue is not full).
term(int, int) - Static method in interface it.unimi.di.prog2.h18.Poly
Creates a term with given coefficient and degree.
Term(int, int) - Constructor for record class it.unimi.di.prog2.h09.SparsePoly.Term
Builds a term.
Term(int, int) - Constructor for record class it.unimi.di.prog2.h10.SparsePoly.Term
Builds a term.
Term(int, int) - Constructor for record class it.unimi.di.prog2.h18.Poly.Term
Creates a new term with the given coefficient and degree.
terms - Variable in class it.unimi.di.prog2.h09.SparsePoly
The array of terms (in increasing degree).
terms - Variable in class it.unimi.di.prog2.h10.SparsePoly
The array of terms (in increasing degree).
terms - Variable in class it.unimi.di.prog2.h18.SparsePoly
The list of terms.
test(String) - Method in class it.unimi.di.prog2.h13.StringEndsWith
 
Test Class - Section in package it.unimi.di.prog2.e17
 
Test Class - Section in package it.unimi.di.prog2.s17
 
tick() - Method in class it.unimi.di.prog2.h14.member.Watch.Gear
Simulates a tick of this gear, increasing its number of rotations by one.
tick() - Method in class it.unimi.di.prog2.h14.member.Watch
Simulates a tick of this watch, increasing the number of rotations of all its gears by one.
title - Variable in class it.unimi.di.prog2.h14.member.Book.Chapter
The title of this chapter.
title - Variable in class it.unimi.di.prog2.h14.member.Book
The title of this book.
title() - Method in class it.unimi.di.prog2.h14.member.Book.Chapter
Returns the title of this chapter.
to - Variable in class it.unimi.di.prog2.s14.IntRange
The last number of the iteration.
to(int) - Method in class it.unimi.di.prog2.s14.IntRange
Sets the end value.
toString() - Method in record class it.unimi.di.prog2.h09.SparsePoly.Term
Returns a string representation of this record class.
toString() - Method in record class it.unimi.di.prog2.h10.SparsePoly.Term
Returns a string representation of this record class.
toString() - Method in class it.unimi.di.prog2.h11.DensePoly
 
toString() - Method in class it.unimi.di.prog2.h12.CurrencyAmount
 
toString() - Method in class it.unimi.di.prog2.h12.GuestList
 
toString() - Method in class it.unimi.di.prog2.h13.ArrayIntSet
 
toString() - Method in class it.unimi.di.prog2.h14.member.Book.Chapter
 
toString() - Method in class it.unimi.di.prog2.h14.member.Book
 
toString() - Method in class it.unimi.di.prog2.h14.member.GuestList
 
toString() - Method in class it.unimi.di.prog2.h14.member.Watch.Gear
 
toString() - Method in class it.unimi.di.prog2.h14.member.Watch
 
toString() - Method in class it.unimi.di.prog2.h14.StringFormatter
Returns a string version of this formatter, non-null strings will be concatenated with a space, and a newline will be inserted for each null.
toString() - Method in class it.unimi.di.prog2.h16.MaxIntSet
 
toString() - Method in class it.unimi.di.prog2.h17.AbstractIntSet
 
toString() - Method in class it.unimi.di.prog2.h18.AbstractPoly
 
toString() - Method in record class it.unimi.di.prog2.h18.Poly.Term
Returns a string representation of this record class.
toString() - Method in class it.unimi.di.prog2.s12.BoundedIntQueue
 
toString() - Method in class it.unimi.di.prog2.s12.RationalNumber
 
toString() - Method in class it.unimi.di.prog2.s12.StringToIntMap
 
toString() - Method in class it.unimi.di.prog2.s14.IntRange
 
toString() - Method in class it.unimi.di.prog2.s17.AstronomicalSystem
 
toString() - Method in class it.unimi.di.prog2.s17.Planet
 
toString() - Method in record class it.unimi.di.prog2.s17.Point
Returns a string representation of this record class.
toString() - Method in class it.unimi.di.prog2.s17.Star
 
totalEnergy() - Method in class it.unimi.di.prog2.s17.AstronomicalSystem
Returns the total energy of the system.

U

UguaglianzaFrazioni - Class in it.unimi.di.prog2.e03
Classe per la verifica dell'uguaglianza tra frazioni.
UguaglianzaFrazioni - Class in it.unimi.di.prog2.h03
Classe per la verifica dell'uguaglianza tra frazioni.
UguaglianzaFrazioni - Class in it.unimi.di.prog2.s03
Classe per la verifica dell'uguaglianza tra frazioni.
UguaglianzaFrazioni() - Constructor for class it.unimi.di.prog2.e03.UguaglianzaFrazioni
Costruttore privato per impedire l'istanziazione.
UguaglianzaFrazioni() - Constructor for class it.unimi.di.prog2.h03.UguaglianzaFrazioni
.
UguaglianzaFrazioni() - Constructor for class it.unimi.di.prog2.s03.UguaglianzaFrazioni
.
units() - Method in class it.unimi.di.prog2.h12.CurrencyAmount
Returns the integer part of the amount.
updatePosition() - Method in class it.unimi.di.prog2.s17.CelestialBody
Updates the position of this celestial body (usually following a change in its velocity).
updatePosition() - Method in class it.unimi.di.prog2.s17.Planet
 
updatePosition() - Method in class it.unimi.di.prog2.s17.Star
 
updateVelocity(CelestialBody) - Method in class it.unimi.di.prog2.s17.CelestialBody
Updates the velocity of this celestial body.
updateVelocity(CelestialBody) - Method in class it.unimi.di.prog2.s17.Planet
 
updateVelocity(CelestialBody) - Method in class it.unimi.di.prog2.s17.Star
 
uppercase(Iterator) - Static method in class it.unimi.di.prog2.e14.StringIterators
Converts strings to uppercase.
uppercase(Iterator) - Static method in class it.unimi.di.prog2.s14.StringIterators
Converts strings to uppercase.
UseNutritionFacts - Class in it.unimi.di.prog2.h11.builder
See EJ 2.1 for a discussion of the alternatives presented here.
UseNutritionFacts() - Constructor for class it.unimi.di.prog2.h11.builder.UseNutritionFacts
.

V

values - Variable in class it.unimi.di.prog2.s12.StringToIntMap
A list containing the values.
velocity - Variable in class it.unimi.di.prog2.s17.Planet
The velocity of this planet.
velocity() - Method in class it.unimi.di.prog2.s17.CelestialBody
Returns the velocity of this celestial body.
velocity() - Method in class it.unimi.di.prog2.s17.Planet
 
velocity() - Method in class it.unimi.di.prog2.s17.Star
 

W

Watch - Class in it.unimi.di.prog2.h14.member
A watch with gears.
Watch(String, List) - Constructor for class it.unimi.di.prog2.h14.member.Watch
Creates a watch with the given model and gears.
Watch.Gear - Class in it.unimi.di.prog2.h14.member
A gear of a watch.
WatchClient - Class in it.unimi.di.prog2.h14.member
A simple client for the Watch class.
WatchClient() - Constructor for class it.unimi.di.prog2.h14.member.WatchClient
.

X

x - Variable in record class it.unimi.di.prog2.s17.Point
The field for the x record component.
x() - Method in record class it.unimi.di.prog2.s17.Point
Returns the value of the x record component.

Y

y - Variable in record class it.unimi.di.prog2.s17.Point
The field for the y record component.
y() - Method in record class it.unimi.di.prog2.s17.Point
Returns the value of the y record component.

Z

z - Variable in record class it.unimi.di.prog2.s17.Point
The field for the z record component.
z() - Method in record class it.unimi.di.prog2.s17.Point
Returns the value of the z record component.
ZERO - Static variable in class it.unimi.di.prog2.h11.DensePoly
The (only instance) of the zero polynomial.
ZERO - Static variable in class it.unimi.di.prog2.h12.CurrencyAmount
A constant representing the zero amount.
ZERO - Static variable in interface it.unimi.di.prog2.h18.Poly
The only instance of the zero Poly.
ZERO - Static variable in record class it.unimi.di.prog2.s17.Point
The point corresponding to the origin.
A B C D E F G H I K L M N O P R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values