Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
EnumSet expose internal array to Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Malachi Griffie committed Mar 5, 2014
1 parent 5266e92 commit 621a43a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/nexus/EnumSet.as
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,20 @@ public class EnumSet implements IEnum

/**
* Internal create method that doesn't check or filter values
* @return
* @private
*/
static internal function fromArrayInternal(array:Array):EnumSet
{
var result : EnumSet = new EnumSet();
result.m_values = array;
return result;
}

/**
* Return array directly for internal use where we're not worried about mutation
* @private
*/
internal function get values():Array { return m_values; }

//--------------------------------------
// PUBLIC METHODS
Expand Down

0 comments on commit 621a43a

Please sign in to comment.