JetBrains / JetBrains/java-annotations
Double/float range annotation
オープン
- 主要言語
- Kotlin
- スター
- 463
- フォーク
- 72
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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();
}
```
コントリビューションガイド
評価
この issue はまだ評価されていません。