Class SectionNotice
Class SectionNotice
- java.lang.Object
-
- com.here.sdk.routing.SectionNotice
-
public final class SectionNotice extends java.lang.ObjectExplains an issue encountered in a
Section.
-
-
Field Summary
Fields Modifier and Type Field Description SectionNoticeCodecodeThe notice code.NoticeSeverityseverityThe notice severity.java.util.List<ViolatedRestriction>violatedRestrictionsThe following propertyviolated_restrictionscontains the notice detail information.
-
Constructor Summary
Constructors Constructor Description SectionNotice(SectionNoticeCode code, NoticeSeverity severity)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
code
@NonNull public SectionNoticeCode code
The notice code.
-
severity
@NonNull public NoticeSeverity severity
The notice severity.
-
violatedRestrictions
@NonNull public java.util.List<ViolatedRestriction> violatedRestrictions
The following property
violated_restrictionscontains the notice detail information. Only three types of restrictions can have notice details: time dependent restriction, vehicle restriction and transport mode restriction. There is no one-to-one match of theSectionNotice.codeand these three restriction types. For example, ifSectionNotice.codeisSectionNoticeCode.VIOLATED_VEHICLE_RESTRICTION, then it can be either vehicle restriction or transport mode restriction. IfSectionNotice.codeisSectionNoticeCode.SEASONAL_CLOSURE, then it is time dependent restriction. If the section notice is none of the above-mentioned three types, then this will be an empty list.
-
-
Constructor Detail
-
SectionNotice
public SectionNotice(@NonNull SectionNoticeCode code, @NonNull NoticeSeverity severity)Creates a new instance.
- Parameters:
code-The notice code.
severity-The notice severity.
-
-