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
d4890a22
Commit
d4890a22
authored
Jan 20, 2018
by
Rohit Prasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement OrderMatching class
parent
21454daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/OrderMatching.java
src/OrderMatching.java
+14
-0
No files found.
src/OrderMatching.java
0 → 100644
View file @
d4890a22
import
java.util.*
;
public
class
OrderMatching
{
ArrayList
<
SellOrder
>
sellOrderQueue
=
new
ArrayList
<>();
ArrayList
<
BuyOrder
>
buyOrderQueue
=
new
ArrayList
<>();
/*
* Checks if the order is valid
*/
boolean
validate
(
Order
order
)
{
return
order
.
getQty
()
>
0
&&
order
.
getPrice
()
>
0.0
;
}
}
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