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 voidaddProjection(Projection projection)Add the projection to the authorityvoidclear()Clear all projections for the authorityintcount()Get the count of authority projectionsStringgetAuthority()Get the authoritySet<String>getCodes()Get the projection codesProjectiongetProjection(long code)Get the projection for the codeProjectiongetProjection(String code)Get the projection for the codeCollection<Projection>getProjections()Get the projectionsbooleanhasProjection(long code)Check if the collection contains a projection for the codebooleanhasProjection(String code)Check if the collection contains a projection for the codebooleanhasProjection(Projection projection)Check if the collection contains the projectionbooleanisEmpty()Is the collection empty?voidremove(long code)Remove the projection with the codevoidremove(String code)Remove the projection with the codevoidremove(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
-
-