JetBrains / JetBrains/java-annotations

Double/float range annotation

Đang mở
#122 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Kotlin
Star
463
Fork
72
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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();
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.