immutable object meaning in English
不可变对象
Examples
- " and others , i extolled the virtues of immutability - immutable objects cannot get into an inconsistent state
” (和其他文章中) ,我赞扬了不可变的优点,不可变对象不能进入不稳定的状态。 - Keyword , and you can freely share and cache references to immutable objects without having to copy or clone them
关键字保证的) ,并且您可以随意共享和缓存对不可变对象的引用,而不必复制或者克隆它们。 - There can be no side effects on immutable objects , and caching a reference to an immutable object is always safe from alias problems
不可变对象上没有副作用,并且缓存不可变对象的引用总是安全的,不会出现别名问题。 - Classes in the java class library are examples of immutable objects - they represent a single value that cannot change over the lifetime of the object
类就是不变对象的示例它们表示在对象的生命期内无法更改的单个值。 - Finally , a bug in the java compiler makes it impossible to reliably create immutable objects when inner classes are on the scene
最后,当使用内部类( inner class )后,在java编译器中的一个错误使它无法可靠地创建不变对象。