Fix SetArtilleriesGeneric
This commit is contained in:
parent
675c220c79
commit
b481b124a8
@ -9,11 +9,11 @@ public class SetArtilleriesGeneric<T> {
|
||||
_places = new Object[count];
|
||||
}
|
||||
|
||||
public int Insert(T artillery) {
|
||||
return Insert(artillery, 0);
|
||||
public int insert(T artillery) {
|
||||
return insert(artillery, 0);
|
||||
}
|
||||
|
||||
public int Insert(T artillery, int position) {
|
||||
public int insert(T artillery, int position) {
|
||||
if (position < 0 || position >= getCount()) {
|
||||
return -1;
|
||||
}
|
||||
@ -46,7 +46,7 @@ public class SetArtilleriesGeneric<T> {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public T Remove(int position) {
|
||||
public T remove(int position) {
|
||||
if (position < 0 || position >= getCount())
|
||||
{
|
||||
return null;
|
||||
@ -60,7 +60,7 @@ public class SetArtilleriesGeneric<T> {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public T Get(int position) {
|
||||
public T get(int position) {
|
||||
if (position < 0 || position >= getCount()) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user