JetBrains / JetBrains/java-annotations
Double/float range annotation
Offen
- Vorherrschende Sprache
- Kotlin
- Sterne
- 463
- Forks
- 72
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
It would be incredibly useful to have something similar to `@Range` for doubles/floats.
For example, to indicate that the return value is always in the range `[0, 1]` (0 to 1, inclusive)
something like
```java
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.TYPE_USE})
public @interface DoubleRange {
double from();
double to();
}
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.