internal CuratorEventImpl(CuratorFrameworkImpl client, CuratorEventType type, int resultCode, String path, String name, Object context, Stat stat, byte[] data, List <String> children, WatchedEvent watchedEvent, List <ACL> aclList) { this.type = type; this.resultCode = resultCode; this.path = client.unfixForNamespace(path); this.name = name; this.context = context; this.stat = stat; this.data = data; this.children = children; this.watchedEvent = (watchedEvent != null) ? new NamespaceWatchedEvent(client, watchedEvent) : watchedEvent; this.aclList = (aclList != null) ? new ReadOnlyCollectionBuilder <ACL>(aclList).ToReadOnlyCollection() : null; }
internal CuratorEventImpl(CuratorFrameworkImpl client, CuratorEventType type, int resultCode, String path, String name, Object context, Stat stat, byte[] data, List<String> children, WatchedEvent watchedEvent, List<ACL> aclList) { this.type = type; this.resultCode = resultCode; this.path = client.unfixForNamespace(path); this.name = name; this.context = context; this.stat = stat; this.data = data; this.children = children; this.watchedEvent = (watchedEvent != null) ? new NamespaceWatchedEvent(client, watchedEvent) : watchedEvent; this.aclList = (aclList != null) ? new ReadOnlyCollectionBuilder<ACL>(aclList).ToReadOnlyCollection() : null; }