JetBrains / JetBrains/java-annotations
Double/float range annotation
Aperta
- Lingua principale
- Kotlin
- Stelle
- 463
- Fork
- 72
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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();
}
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.