Package mil.nga.proj
Class Projections
- java.lang.Object
-
- mil.nga.proj.Projections
-
public class Projections extends Object
Collection of projections by authority- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description Projections()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProjection(Projection projection)Add the projectionintauthorityCount()Get the count of authoritiesvoidclear()Clear all projectionsvoidclear(String authority)Clear all projections for the authorityProjectiongetProjection(String authority, String code)Get the projection for the authority and codeAuthorityProjectionsgetProjections(String authority)Get the authority projectionsbooleanhasProjection(String authority, String code)Check if the collection contains a projection for the authority and codebooleanhasProjection(Projection projection)Check if the collection contains the projectionbooleanisEmpty()Is the collection empty?intprojectionCount()Get the count of projectionsvoidremove(String authority, long code)Remove the projection for the authority and codevoidremove(String authority, String code)Remove the projection for the authority and codevoidremove(Projection projection)Remove the projection
-
-
-
Method Detail
-
getProjections
public AuthorityProjections getProjections(String authority)
Get the authority projections- Parameters:
authority- coordinate authority- Returns:
- authority projections
-
getProjection
public Projection getProjection(String authority, String code)
Get the projection for the authority and code- Parameters:
authority- coordinate authoritycode- coordinate code- Returns:
- projection
-
hasProjection
public boolean hasProjection(Projection projection)
Check if the collection contains the projection- Parameters:
projection- projection- Returns:
- true if has the projection
-
hasProjection
public boolean hasProjection(String authority, String code)
Check if the collection contains a projection for the authority and code- Parameters:
authority- coordinate authoritycode- coordinate code- Returns:
- true if has a projection
-
addProjection
public void addProjection(Projection projection)
Add the projection- Parameters:
projection- projection
-
clear
public void clear()
Clear all projections
-
clear
public void clear(String authority)
Clear all projections for the authority- Parameters:
authority- coordinate authority
-
remove
public void remove(String authority, long code)
Remove the projection for the authority and code- Parameters:
authority- coordinate authoritycode- coordinate code
-
remove
public void remove(String authority, String code)
Remove the projection for the authority and code- Parameters:
authority- coordinate authoritycode- coordinate code
-
remove
public void remove(Projection projection)
Remove the projection- Parameters:
projection- projection
-
authorityCount
public int authorityCount()
Get the count of authorities- Returns:
- count
-
projectionCount
public int projectionCount()
Get the count of projections- Returns:
- count
-
isEmpty
public boolean isEmpty()
Is the collection empty?- Returns:
- true if empty
-
-