Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS682-HW1-OrderMatching
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rohit Prasad
CS682-HW1-OrderMatching
Commits
6c1b1020
Commit
6c1b1020
authored
Jan 20, 2018
by
Rohit Prasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add getter methods for time and type of trade
parent
342adf3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
src/Trade.java
src/Trade.java
+8
-6
No files found.
src/Trade.java
View file @
6c1b1020
public
abstract
class
Trade
{
public
abstract
class
Trade
{
int
qty
;
int
qty
;
float
price
;
float
price
;
int
time
;
String
type
;
Trade
(
int
qty
,
float
price
)
{
Trade
(
int
qty
,
float
price
)
{
this
.
qty
=
qty
;
this
.
qty
=
qty
;
this
.
price
=
price
;
this
.
price
=
price
;
}
}
int
getQty
()
{
int
getQty
()
{
return
qty
;
}
return
qty
;
}
float
getPrice
()
{
float
getPrice
()
{
return
price
;
}
return
price
;
}
int
getTime
()
{
return
time
;
}
String
getType
()
{
return
type
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment