BrightSide Workbench Full Report + Source Code
org.turro.financials.product.IProductKey Class Reference
Inheritance diagram for org.turro.financials.product.IProductKey:
Collaboration diagram for org.turro.financials.product.IProductKey:

Public Member Functions

 IProductKey ()
 
 IProductKey (long productId, long providerId, long providerProductId, String productDescription)
 
long getProductId ()
 
long getProviderId ()
 
long getProviderProductId ()
 
String getProductDescription ()
 
void setProductId (long productId)
 
void setProviderId (long providerId)
 
void setProviderProductId (long providerProductId)
 
void setProductDescription (String productDescription)
 
int compareTo (IProductKey o)
 
int hashCode ()
 
boolean equals (Object obj)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file IProductKey.java.

Constructor & Destructor Documentation

◆ IProductKey() [1/2]

org.turro.financials.product.IProductKey.IProductKey ( )

Definition at line 32 of file IProductKey.java.

32  {
33  }
Here is the caller graph for this function:

◆ IProductKey() [2/2]

org.turro.financials.product.IProductKey.IProductKey ( long  productId,
long  providerId,
long  providerProductId,
String  productDescription 
)

Definition at line 35 of file IProductKey.java.

35  {
36  this.productId = productId;
37  this.providerId = providerId;
38  this.providerProductId = providerProductId;
39  this.productDescription = productDescription;
40  }

Member Function Documentation

◆ compareTo()

int org.turro.financials.product.IProductKey.compareTo ( IProductKey  o)

Definition at line 75 of file IProductKey.java.

75  {
76  int result = CompareUtil.compare(productId, o.productId);
77  if(result == 0) {
78  result = CompareUtil.compare(providerId, o.providerId);
79  }
80  if(result == 0) {
81  result = CompareUtil.compare(providerProductId, o.providerProductId);
82  }
83  if(result == 0) {
84  result = CompareUtil.compare(productDescription, o.productDescription);
85  }
86  return result;
87  }

◆ equals()

boolean org.turro.financials.product.IProductKey.equals ( Object  obj)

Definition at line 100 of file IProductKey.java.

100  {
101  if (obj == null) {
102  return false;
103  }
104  if (getClass() != obj.getClass()) {
105  return false;
106  }
107  final IProductKey other = (IProductKey) obj;
108  if (this.productId != other.productId) {
109  return false;
110  }
111  if (this.providerId != other.providerId) {
112  return false;
113  }
114  if (this.providerProductId != other.providerProductId) {
115  return false;
116  }
117  if ((this.productDescription == null) ? (other.productDescription != null) : !this.productDescription.equals(other.productDescription)) {
118  return false;
119  }
120  return true;
121  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProductDescription()

String org.turro.financials.product.IProductKey.getProductDescription ( )

Definition at line 54 of file IProductKey.java.

54  {
55  return productDescription;
56  }
Here is the caller graph for this function:

◆ getProductId()

long org.turro.financials.product.IProductKey.getProductId ( )

Definition at line 42 of file IProductKey.java.

42  {
43  return productId;
44  }
Here is the caller graph for this function:

◆ getProviderId()

long org.turro.financials.product.IProductKey.getProviderId ( )

Definition at line 46 of file IProductKey.java.

46  {
47  return providerId;
48  }
Here is the caller graph for this function:

◆ getProviderProductId()

long org.turro.financials.product.IProductKey.getProviderProductId ( )

Definition at line 50 of file IProductKey.java.

50  {
51  return providerProductId;
52  }
Here is the caller graph for this function:

◆ hashCode()

int org.turro.financials.product.IProductKey.hashCode ( )

Definition at line 90 of file IProductKey.java.

90  {
91  int hash = 5;
92  hash = 89 * hash + (int) (this.productId ^ (this.productId >>> 32));
93  hash = 89 * hash + (int) (this.providerId ^ (this.providerId >>> 32));
94  hash = 89 * hash + (int) (this.providerProductId ^ (this.providerProductId >>> 32));
95  hash = 89 * hash + (this.productDescription != null ? this.productDescription.hashCode() : 0);
96  return hash;
97  }

◆ setProductDescription()

void org.turro.financials.product.IProductKey.setProductDescription ( String  productDescription)

Definition at line 70 of file IProductKey.java.

70  {
71  this.productDescription = productDescription;
72  }
Here is the caller graph for this function:

◆ setProductId()

void org.turro.financials.product.IProductKey.setProductId ( long  productId)

Definition at line 58 of file IProductKey.java.

58  {
59  this.productId = productId;
60  }
Here is the caller graph for this function:

◆ setProviderId()

void org.turro.financials.product.IProductKey.setProviderId ( long  providerId)

Definition at line 62 of file IProductKey.java.

62  {
63  this.providerId = providerId;
64  }
Here is the caller graph for this function:

◆ setProviderProductId()

void org.turro.financials.product.IProductKey.setProviderProductId ( long  providerProductId)

Definition at line 66 of file IProductKey.java.

66  {
67  this.providerProductId = providerProductId;
68  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: