Skip to content

Commit

Permalink
sdfsdf
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberpwnn committed Jun 26, 2022
1 parent 2ebb1b7 commit 92997d3
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 414 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package Amulet.extensions.java.util.Collection;

import art.arcane.amulet.flow.FlowBuilder;
import manifold.ext.rt.api.Extension;
import manifold.ext.rt.api.Self;
import manifold.ext.rt.api.This;
Expand All @@ -29,10 +28,6 @@

@Extension
public class XCollection {
public static <E> FlowBuilder<E> flow(@This Collection<E> self) {
return new FlowBuilder<>(self.iterator());
}

public static <E> @Self Collection<E> unmodifiable(@This Collection<E> self) {
return Collections.unmodifiableCollection(self);
}
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/Amulet/extensions/java/util/List/XList.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

package Amulet.extensions.java.util.List;

import art.arcane.amulet.flow.Flow;
import art.arcane.amulet.flow.FlowBuilder;
import art.arcane.amulet.functional.Consume;
import manifold.ext.rt.api.Extension;
import manifold.ext.rt.api.Self;
Expand All @@ -42,10 +40,6 @@ public class XList {
return self.withoutDuplicates(ArrayList::new);
}

public static <E> FlowBuilder<E> flow(@This List<E> self) {
return new FlowBuilder<>(self.iterator());
}

/**
* Returns a copy of this list without duplicates (set conversion)
*
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/Amulet/extensions/java/util/Map/XMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@

package Amulet.extensions.java.util.Map;

import art.arcane.amulet.flow.FlowBuilder;
import art.arcane.amulet.functional.Consume;
import manifold.ext.rt.api.Extension;
import manifold.ext.rt.api.Self;
import manifold.ext.rt.api.This;
import manifold.util.concurrent.ConcurrentHashSet;
import org.checkerframework.checker.units.qual.K;

import java.security.KeyPair;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Predicate;
Expand Down Expand Up @@ -59,14 +54,6 @@ public static <K, V> List<K> sortK(@This Map<K, V> self, Comparator<V> comparato
return k;
}

public static <K, V> FlowBuilder<K> keyFlow(@This Map<K, V> self) {
return new FlowBuilder<>(self.keySet().iterator());
}

public static <K, V> FlowBuilder<V> valueFlow(@This Map<K, V> self) {
return new FlowBuilder<>(self.values().iterator());
}

public static <K, V> @Self Map<K, V> unmodifiable(@This Map<K, V> self) {
return Collections.unmodifiableMap(self);
}
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/Amulet/extensions/java/util/Set/XSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@

package Amulet.extensions.java.util.Set;

import art.arcane.amulet.flow.FlowBuilder;
import manifold.ext.rt.api.Extension;
import manifold.ext.rt.api.Self;
import manifold.ext.rt.api.This;
import manifold.util.concurrent.ConcurrentHashSet;
import org.checkerframework.checker.units.qual.K;

import java.util.*;
import java.util.concurrent.CopyOnWriteArraySet;
Expand All @@ -37,10 +35,6 @@ public class XSet {
return self.copy(HashSet::new);
}

public static <E> FlowBuilder<E> flow(@This Set<E> self) {
return new FlowBuilder<>(self.iterator());
}

public static <E> @Self Set<E> unmodifiable(@This Set<E> self) {
return Collections.unmodifiableSet(self);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package Amulet.extensions.java.util.stream.Stream;

import art.arcane.amulet.flow.FlowBuilder;
import art.arcane.amulet.functional.Consume;
import art.arcane.amulet.functional.Function;
import manifold.ext.rt.api.Extension;
Expand All @@ -45,10 +44,6 @@ public static <T,R> R splitInterlace(@This Stream<T> thiz, Function.Two<Stream<T
return s.apply(f.evenValues().stream(), f.oddValues().stream());
}

public static <T> FlowBuilder<T> flow(@This Stream<T> self) {
return new FlowBuilder<>(self.iterator());
}

public static <T> Set<T> toSet(@This Stream<T> thiz) {
return thiz.collect(Collectors.toSet());
}
Expand Down
35 changes: 0 additions & 35 deletions src/main/java/art/arcane/amulet/flow/BoundFlowListener.java

This file was deleted.

107 changes: 0 additions & 107 deletions src/main/java/art/arcane/amulet/flow/DirectFlow.java

This file was deleted.

97 changes: 0 additions & 97 deletions src/main/java/art/arcane/amulet/flow/Flow.java

This file was deleted.

Loading

0 comments on commit 92997d3

Please sign in to comment.