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 void
addProjection(Projection projection)
Add the projectionint
authorityCount()
Get the count of authoritiesvoid
clear()
Clear all projectionsvoid
clear(String authority)
Clear all projections for the authorityProjection
getProjection(String authority, String code)
Get the projection for the authority and codeAuthorityProjections
getProjections(String authority)
Get the authority projectionsboolean
hasProjection(String authority, String code)
Check if the collection contains a projection for the authority and codeboolean
hasProjection(Projection projection)
Check if the collection contains the projectionboolean
isEmpty()
Is the collection empty?int
projectionCount()
Get the count of projectionsvoid
remove(String authority, long code)
Remove the projection for the authority and codevoid
remove(String authority, String code)
Remove the projection for the authority and codevoid
remove(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
-
-