org.refcodes.checkerboard.SpriteFactoryAccessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refcodes-checkerboard Show documentation
Show all versions of refcodes-checkerboard Show documentation
Artifact for providing some easy means to visualize (state of) board
games or (state of) cellular automatons.
// /////////////////////////////////////////////////////////////////////////////
// REFCODES.ORG
// =============================================================================
// This code is copyright (c) by Siegfried Steiner, Munich, Germany and licensed
// under the following (see "http://en.wikipedia.org/wiki/Multi-licensing")
// licenses:
// =============================================================================
// GNU General Public License, v3.0 ("http://www.gnu.org/licenses/gpl-3.0.html")
// together with the GPL linking exception applied; as being applied by the GNU
// Classpath ("http://www.gnu.org/software/classpath/license.html")
// =============================================================================
// Apache License, v2.0 ("http://www.apache.org/licenses/LICENSE-2.0")
// =============================================================================
// Please contact the copyright holding author(s) of the software artifacts in
// question for licensing issues not being covered by the above listed licenses,
// also regarding commercial licensing models or regarding the compatibility
// with other open source licenses.
// /////////////////////////////////////////////////////////////////////////////
package org.refcodes.checkerboard;
/**
* Provides an accessor for a sprite factory property.
*
* @param the generic type
*/
public interface SpriteFactoryAccessor> {
/**
* Retrieves the sprite factory from the sprite factory property.
*
* @return The sprite factory stored by the sprite factory property.
*/
SF getSpriteFactory();
/**
* Provides a mutator for a sprite factory property.
*
* @param the generic type
*/
public interface SpriteFactoryMutator> {
/**
* Sets the sprite factory for the sprite factory property.
*
* @param aSpriteFactory The sprite factory to be stored by the sprite
* factory property.
*/
void setSpriteFactory( SF aSpriteFactory );
}
/**
* Provides a builder method for a sprite factory property returning the
* builder for applying multiple build operations.
*
* @param the generic type
* @param The builder to return in order to be able to apply multiple
* build operations.
*/
public interface SpriteFactoryBuilder, B extends SpriteFactoryBuilder> {
/**
* Sets the sprite factory for the sprite factory property.
*
* @param aSpriteFactory The sprite factory to be stored by the sprite
* factory property.
*
* @return The builder for applying multiple build operations.
*/
B withSpriteFactory( SF aSpriteFactory );
}
/**
* Provides a sprite factory property.
*
* @param the generic type
*/
public interface SpriteFactoryProperty> extends SpriteFactoryAccessor, SpriteFactoryMutator {}
/**
* Provides a sprite factory property builder.
*
* @param the generic type
*/
public interface SpriteFactoryPropertyBuilder> extends SpriteFactoryProperty, SpriteFactoryBuilder> {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy