代码搜索:immutable
找到约 373 项符合「immutable」的源代码
代码结果 373
www.eeworm.com/read/415628/11061067
java main.java
import person.MutablePerson;
import person.ImmutablePerson;
public class Main {
public static void main(String[] args) {
MutablePerson mutable = new MutablePerson("start", "start");
www.eeworm.com/read/133648/14031422
makefile
# From Thinking in Java, 2nd Edition
# At http://www.BruceEckel.com
# (c) Bruce Eckel 2000
# Copyright notice in Copyright.txt
# Automatically-generated MAKEFILE
# For examples in directory .\ap
www.eeworm.com/read/127767/14337230
txt e010. serializing an immutable bean property to xml.txt
An immutable property is one where the value is supplied to the constructor rather than through a setter method. By default, immutable properties are not persisted. This example demonstrates how to pe
www.eeworm.com/read/148359/5715828
in h5tinit.c.in
/* Generated automatically by H5detect -- do not edit */
/*-------------------------------------------------------------------------
* Copyright (C) 1997 National Center for Supercomputing Applica
www.eeworm.com/read/305277/3779343
scala bug586.scala
import scala.collection.immutable.{Map, TreeMap, ListMap, ListSet, Set}
import scala.collection.{immutable=>imm, mutable=>mut}
case class HashTreeSet[A](map: imm.Map[A, Unit])
extends Object
with im
www.eeworm.com/read/252364/4408916
c0e29d089c92001b1480d697f94b239e
//: appendixa:Immutable2.java
// A companion class to modify immutable objects.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt
www.eeworm.com/read/305277/3778287
scala iq.scala
/* $Id: iq.scala 5359 2005-12-16 15:33:49Z dubochet $
* Test file for immutable queues.
*/
import scala.collection.immutable.Queue;
object iq {
def main = {
/* Create an empty queue. */
www.eeworm.com/read/305277/3778315
check collections.check
***** mutable.HashSet:
test1: 14005
test2: 25005003, iters = 5000
test3: 25005003
***** immutable.Set:
test1: 14005
test2: 25005003, iters = 5000
test3: 25005003
***** immutable.ListSet:
test1: 14005
www.eeworm.com/read/305277/3779281
check collections.check
***** immutable.ListSet:
test1: 14005
test2: 25005003
test3: 25005003
***** immutable.TreeSet:
test1: 14005
test2: 25005003
test3: 25005003
***** mutable.HashSet:
test1: 14005
test2: 25005003
test3: 2