MCPcopy Create free account
hub / github.com/amigoscode/java-streams / Car

Class Car

src/test/java/com/amigoscode/beans/Car.java:3–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package com.amigoscode.beans;
2
3public class Car {
4
5 private final Integer id;
6 private final String make;
7 private final String model;
8 private final String color;
9 private final Integer year;
10 private final Double price;
11
12 public Car(
13 Integer id,
14 String make,
15 String model,
16 String color,
17 Integer year,
18 Double price) {
19 this.id = id;
20 this.make = make;
21 this.model = model;
22 this.color = color;
23 this.year = year;
24 this.price = price;
25 }
26
27 public Integer getId() {
28 return id;
29 }
30
31 public String getMake() {
32 return make;
33 }
34
35 public String getModel() {
36 return model;
37 }
38
39 public String getColor() {
40 return color;
41 }
42
43 public Integer getYear() {
44 return year;
45 }
46
47 public Double getPrice() {
48 return price;
49 }
50
51 @Override
52 public String toString() {
53 return "Car{" +
54 "id=" + id +
55 ", make='" + make + '\'' +
56 ", model='" + model + '\'' +
57 ", color='" + color + '\'' +
58 ", year=" + year +
59 ", price=" + price +
60 '}';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected