keychera / AquaAesthetic

The last Java project for OOP
0 stars 0 forks source link

all SubController doesn't yet handle object destruction #23

Closed keychera closed 7 years ago

keychera commented 7 years ago

they can addNewEntity but not yet deleteSpecificEntity

keychera commented 7 years ago

this is not what I mean

@Override
public void destroy() {
    // TODO Auto-generated method stub
    fishes = null;
}

what I do mean is deleting specific entity when needed (seperti saat ikan makan sebuah makanan, makanan tersebut dihapus dari list biar nggak diproses)

List class have several helpful methods, remove(int e), remove(Object o), removeAll(), but it's more than just using that

teaolivia commented 7 years ago

ok

keychera commented 7 years ago

all SubControllers that handles entities now have a method to remove obsolete entities on commit 5f946efc16e759cc1710e38b332e2cb110e22553 branch testingFish