org.jsimpledb.demo.Satellite Maven / Gradle / Ivy
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.demo;
import javax.validation.constraints.NotNull;
/**
* Implemented by heavenly bodies that can orbit around other heavenly bodies.
*
* @param parent heavenly body type
*/
public interface Satellite
> extends Body {
/**
* Get the parent around which this instance orbits, if any.
*
* @return parent heavenly body
*/
@NotNull
P getParent();
void setParent(P parent);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy