Index

B C E G H M O P S T V 
All Classes and Interfaces|All Packages

B

brand - Variable in class org.example.Clothing
 

C

Clothing - Class in org.example
The Clothing class represents an item of clothing with several properties.
Clothing(String, String, String, double, int) - Constructor for class org.example.Clothing
Constructs a Clothing object with specified properties.
color - Variable in class org.example.Clothing
 

E

equals(Object) - Method in class org.example.Clothing
Compares Clothing objects for equality by all fields.

G

getBrand() - Method in class org.example.Clothing
Returns the brand of the clothing item.
getColor() - Method in class org.example.Clothing
Returns the color of the clothing item.
getPrice() - Method in class org.example.Clothing
Returns the price of the clothing item.
getSize() - Method in class org.example.Clothing
Returns the size of the clothing item.
getType() - Method in class org.example.Clothing
Returns the type of the clothing item.

H

hashCode() - Method in class org.example.Clothing
Returns a hash code value for the Clothing object.

M

main(String[]) - Static method in class org.example.Main
Main method that runs the demonstration.
Main - Class in org.example
The Main class demonstrates usage of the Clothing class: - creating an array of objects - sorting by different fields - searching for an identical object
Main() - Constructor for class org.example.Main
 

O

org.example - package org.example
 

P

price - Variable in class org.example.Clothing
 

S

size - Variable in class org.example.Clothing
 
sortByTypeAndBrand(Clothing[]) - Static method in class org.example.Main
Sorts an array of Clothing objects: - first by type ascending (A→Z) - then by brand descending (Z→A) if types are equal

T

toString() - Method in class org.example.Clothing
Provides string representation of the Clothing object.
type - Variable in class org.example.Clothing
 

V

validateFields(String, String, String, int, double) - Method in class org.example.Clothing
Validates constructor arguments.
B C E G H M O P S T V 
All Classes and Interfaces|All Packages