mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
19 lines
336 B
Java
19 lines
336 B
Java
package com.minelittlepony.unicopia;
|
|
|
|
/**
|
|
* Interface for things that can be owned.
|
|
*
|
|
* @param <E> The type of object that owns us.
|
|
*/
|
|
public interface Owned<E> {
|
|
|
|
/**
|
|
* Updates the owner of this object.
|
|
*/
|
|
void setOwner(E owner);
|
|
|
|
/**
|
|
* Gets the owner that holds this object.
|
|
*/
|
|
E getOwner();
|
|
}
|