ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Destructible.java 480B

12345678910111213141516171819202122
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package org.openzen.drawablegui;
  7. import java.util.List;
  8. /**
  9. *
  10. * @author Hoofdgebruiker
  11. */
  12. public interface Destructible extends AutoCloseable {
  13. public static <T extends Destructible> void close(List<T> list) {
  14. for (T item : list)
  15. item.close();
  16. }
  17. @Override
  18. public void close();
  19. }