Package mil.nga.proj
Class AuthorityProjections
- java.lang.Object
-
- mil.nga.proj.AuthorityProjections
-
public class AuthorityProjections extends Object
Collection of projections for a single coordinate authority- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description AuthorityProjections(String authority)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProjection(Projection projection)
Add the projection to the authorityvoid
clear()
Clear all projections for the authorityint
count()
Get the count of authority projectionsString
getAuthority()
Get the authoritySet<String>
getCodes()
Get the projection codesProjection
getProjection(long code)
Get the projection for the codeProjection
getProjection(String code)
Get the projection for the codeCollection<Projection>
getProjections()
Get the projectionsboolean
hasProjection(long code)
Check if the collection contains a projection for the codeboolean
hasProjection(String code)
Check if the collection contains a projection for the codeboolean
hasProjection(Projection projection)
Check if the collection contains the projectionboolean
isEmpty()
Is the collection empty?void
remove(long code)
Remove the projection with the codevoid
remove(String code)
Remove the projection with the codevoid
remove(Projection projection)
Remove the projection
-
-
-
Constructor Detail
-
AuthorityProjections
public AuthorityProjections(String authority)
Constructor- Parameters:
authority
- coordinate authority
-
-
Method Detail
-
getAuthority
public String getAuthority()
Get the authority- Returns:
- authority
-
getProjection
public Projection getProjection(long code)
Get the projection for the code- Parameters:
code
- coordinate code- Returns:
- projection
-
getProjection
public Projection getProjection(String code)
Get the projection for the code- Parameters:
code
- 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(long code)
Check if the collection contains a projection for the code- Parameters:
code
- coordinate code- Returns:
- true if has a projection
-
hasProjection
public boolean hasProjection(String code)
Check if the collection contains a projection for the code- Parameters:
code
- coordinate code- Returns:
- true if has a projection
-
addProjection
public void addProjection(Projection projection)
Add the projection to the authority- Parameters:
projection
- projection
-
clear
public void clear()
Clear all projections for the authority
-
remove
public void remove(long code)
Remove the projection with the code- Parameters:
code
- coordinate code
-
remove
public void remove(String code)
Remove the projection with the code- Parameters:
code
- coordinate code
-
remove
public void remove(Projection projection)
Remove the projection- Parameters:
projection
- projection
-
count
public int count()
Get the count of authority projections- Returns:
- count
-
isEmpty
public boolean isEmpty()
Is the collection empty?- Returns:
- true if empty
-
getProjections
public Collection<Projection> getProjections()
Get the projections- Returns:
- projections
-
-