Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Курсовая работа / InternetConnection / src / ic / core / IProvider
.java /*
* IProvider.java
*
* Created on April 22, 2007, 6:07 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package ic.core;
import java.util.*;
/**
*
* @author adm
*/
public class IProvider {
String name = "prov";
/** Creates a new instance of IProvider */
public IProvider(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public void setName(String n) {
this.name = n;
}
HashMap priceList = new HashMap();
public void addPricePosition(IConnection ic) {
priceList.put(priceList.keySet().size()+1, ic);
}
public HashMap getPriceList() {
return this.priceList;
}
}
* IProvider.java
*
* Created on April 22, 2007, 6:07 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package ic.core;
import java.util.*;
/**
*
* @author adm
*/
public class IProvider {
String name = "prov";
/** Creates a new instance of IProvider */
public IProvider(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public void setName(String n) {
this.name = n;
}
HashMap priceList = new HashMap();
public void addPricePosition(IConnection ic) {
priceList.put(priceList.keySet().size()+1, ic);
}
public HashMap getPriceList() {
return this.priceList;
}
}
Соседние файлы в папке core