Class SectionNotice
- Last UpdatedJun 10, 2025
- 1 minute read
- java.lang.Object
-
- com.here.sdk.routing.SectionNotice
-
public final class SectionNotice extends java.lang.Object
Explains an issue encountered in a
Section
.
-
-
Field Summary
Fields Modifier and Type Field Description SectionNoticeCode
code
The notice code.NoticeSeverity
severity
The notice severity.java.util.List<ViolatedRestriction>
violatedRestrictions
The following propertyviolated_restrictions
contains 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 boolean
equals(java.lang.Object obj)
int
hashCode()
-
-
-
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_restrictions
contains 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.code
and these three restriction types. For example, ifSectionNotice.code
isSectionNoticeCode.VIOLATED_VEHICLE_RESTRICTION
, then it can be either vehicle restriction or transport mode restriction. IfSectionNotice.code
isSectionNoticeCode.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.
-
-