49 lines
2.2 KiB
HTML
49 lines
2.2 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Company.java</title>
|
||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
|
<style type="text/css">
|
||
|
<!--
|
||
|
body {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
|
||
|
pre {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
|
||
|
table {color: #888888; background-color: #313335; font-family: monospace}
|
||
|
.ST1 {color: #9876aa}
|
||
|
.ST2 {color: #ffc66d}
|
||
|
.whitespace {color: #505050}
|
||
|
.comment {color: #808080}
|
||
|
.ST0 {color: #808080; font-family: monospace; font-weight: bold}
|
||
|
.literal {color: #cc7832}
|
||
|
-->
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<table width="100%"><tr><td align="center">/home/caleb/ASDV-WebDev/Semester 2/LabJuneauValidateUserInput/src/main/java/edu/slcc/asdv/bl/Company.java</td></tr></table>
|
||
|
<pre>
|
||
|
<span class="literal">package</span> edu.slcc.asdv.bl;
|
||
|
|
||
|
<span class="literal">import</span> java.util.ArrayList;
|
||
|
<span class="literal">import</span> java.util.List;
|
||
|
|
||
|
<span class="comment">/**</span>
|
||
|
<span class="comment"> *</span>
|
||
|
<span class="comment"> * </span><span class="ST0">@author</span> <span class="comment">ASDV1</span>
|
||
|
<span class="comment">*/</span>
|
||
|
<span class="literal">public</span> <span class="literal">class</span> Company <span class="literal">implements</span> EmployeeInterface
|
||
|
{
|
||
|
<span class="literal">private</span> List<Employee> <span class="ST1">employeeList</span>;
|
||
|
<span class="literal">public</span> Company(){<span class="ST1">employeeList</span> = <span class="literal">new</span> ArrayList<Employee>(); }
|
||
|
@Override
|
||
|
<span class="literal">public</span> <span class="literal">boolean</span> <span class="ST2">insertEmployee</span>(Employee e){<span class="literal">return</span> <span class="ST1">employeeList</span>.add( e ); }
|
||
|
|
||
|
@Override
|
||
|
<span class="literal">public</span> <span class="literal">boolean</span> <span class="ST2">removeEmployee</span>(Employee e){<span class="literal">return</span> <span class="ST1">employeeList</span>.remove(e);}
|
||
|
|
||
|
@Override
|
||
|
<span class="literal">public</span> List<Employee> <span class="ST2">getEmployees</span>(){<span class="literal">return</span> <span class="ST1">employeeList</span>;}
|
||
|
|
||
|
}
|
||
|
|
||
|
</pre></body>
|
||
|
</html>
|