public class StravaSegment extends Object implements StravaCacheable<Integer>
Segments are specific sections of road. Athletes' efforts are compared on these
segments and leaderboards are created.
| Constructor and Description |
|---|
StravaSegment()
No args constructor
|
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public StravaSegmentActivityType getActivityType()
public Integer getAthleteCount()
public StravaSegmentEffort getAthletePrEffort()
@Deprecated public StravaAthleteSegmentStats getAthleteSegmentStats()
public Float getAverageGrade()
public String getCity()
public StravaClimbCategory getClimbCategory()
public String getCountry()
public ZonedDateTime getCreatedAt()
public Float getDistance()
public Integer getEffortCount()
public Float getElevationHigh()
public Float getElevationLow()
@Deprecated public Float getEndLatitude()
public StravaMapPoint getEndLatlng()
@Deprecated public Float getEndLongitude()
public Boolean getHazardous()
public Integer getId()
getId in interface StravaCacheable<Integer>public StravaMap getMap()
public Float getMaximumGrade()
public String getName()
public Boolean getPrivateSegment()
@Deprecated public Integer getPrTime()
public StravaResourceState getResourceState()
getResourceState in interface StravaCacheable<Integer>public Integer getStarCount()
public Boolean getStarred()
public ZonedDateTime getStarredDate()
@Deprecated public Float getStartLatitude()
public StravaMapPoint getStartLatlng()
@Deprecated public Float getStartLongitude()
public String getState()
public Float getTotalElevationGain()
public ZonedDateTime getUpdatedAt()
public int hashCode()
hashCode in class ObjectObject.hashCode()public void setActivityType(StravaSegmentActivityType activityType)
activityType - the activityType to setpublic void setAthleteCount(Integer athleteCount)
athleteCount - the athleteCount to setpublic void setAthletePrEffort(StravaSegmentEffort athletePrEffort)
athletePrEffort - the athletePrEffort to set@Deprecated public void setAthleteSegmentStats(StravaAthleteSegmentStats athleteSegmentStats)
athleteSegmentStats - the athleteSegmentStats to setpublic void setAverageGrade(Float averageGrade)
averageGrade - the averageGrade to setpublic void setCity(String city)
city - the city to setpublic void setClimbCategory(StravaClimbCategory climbCategory)
climbCategory - the climbCategory to setpublic void setCountry(String country)
country - the country to setpublic void setCreatedAt(ZonedDateTime createdAt)
createdAt - the createdAt to setpublic void setDistance(Float distance)
distance - the distance to setpublic void setEffortCount(Integer effortCount)
effortCount - the effortCount to setpublic void setElevationHigh(Float elevationHigh)
elevationHigh - the elevationHigh to setpublic void setElevationLow(Float elevationLow)
elevationLow - the elevationLow to set@Deprecated public void setEndLatitude(Float endLatitude)
endLatitude - the endLatitude to setpublic void setEndLatlng(StravaMapPoint endLatlng)
endLatlng - the endLatlng to set@Deprecated public void setEndLongitude(Float endLongitude)
endLongitude - the endLongitude to setpublic void setHazardous(Boolean hazardous)
hazardous - the hazardous to setpublic void setId(Integer id)
id - the id to setpublic void setMap(StravaMap map)
map - the map to setpublic void setMaximumGrade(Float maximumGrade)
maximumGrade - the maximumGrade to setpublic void setName(String name)
name - the name to setpublic void setPrivateSegment(Boolean privateSegment)
privateSegment - the privateSegment to set@Deprecated public void setPrTime(Integer prTime)
prTime - the prTime to setpublic void setResourceState(StravaResourceState resourceState)
resourceState - the resourceState to setpublic void setStarCount(Integer starCount)
starCount - the starCount to setpublic void setStarred(Boolean starred)
starred - the starred to setpublic void setStarredDate(ZonedDateTime starredDate)
starredDate - the starredDate to set@Deprecated public void setStartLatitude(Float startLatitude)
startLatitude - the startLatitude to setpublic void setStartLatlng(StravaMapPoint startLatlng)
startLatlng - the startLatlng to set@Deprecated public void setStartLongitude(Float startLongitude)
startLongitude - the startLongitude to setpublic void setState(String state)
state - the state to setpublic void setTotalElevationGain(Float totalElevationGain)
totalElevationGain - the totalElevationGain to setpublic void setUpdatedAt(ZonedDateTime updatedAt)
updatedAt - the updatedAt to setpublic String toString()
toString in class ObjectObject.toString()Copyright © 2016 Dan Shannon. All rights reserved.